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: July 9, 2025