Interactive previews iPhone
Glass Button Styles
A button style that applies glass border artwork based on the button’s context
Platform Compatibility
iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+ visionOS 26.0+
Tags
SwiftUI Code
VStack {
HStack {
Button("Tap Me", action: action)
.buttonStyle(.glass)
Button("Tinted Tap Me", action: action)
.buttonStyle(.glass)
.tint(.red)
}
HStack {
Button("Tap Me", action: action)
.buttonStyle(.glassProminent)
Button("Tap Me", action: action)
.buttonStyle(.glassProminent)
.tint(.red)
}
}Found an issue or have a suggestion?
Created: June 10, 2025Updated: December 27, 2025
More Button Components
View allExplore Other Components
Browse allPage Screen Sheet Size
On devices smaller than a page of paper, such as iPhone, Apple Watch, and 8" or 11" iPads, the sheet fills the entire height and, unlike the default sheet on iPad, the full width. On macOS, .page behaves like .fitted.
Swipe Action
Adds custom swipe actions to a row in a list or container, notifying you when the actions are revealed or dismissed.
Default Collapsed Tab Section
Sets the default expansion state for the section containing this tab to collapsed when displayed in the sidebar.