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 allOverlay Arrangement Edge
The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout. In this case, the primary view overlays the secondary view at the trailing edge when the screen is partially open in landscape.
Sheet Placement
Sets the placement of a presentation within the presenting view. This may fall back to center on small screens.
Only Horizontal Split Arrangement Style
Creates a horizontal split arrangement only in portrait orientation. In landscape orientation, no split is applied.
Custom Header Subscription Store View
Creates a view that loads all the subscriptions in a subscription group from the App Store, and merchandises them with custom marketing content.