iPhone SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.
201elements
View
Glass effect
Applies the Liquid Glass effect to a view
Explore Glass effect on iPhone in portrait, with SwiftUI code and Apple API documentation.
SwiftUI code
HStack {
Text("Foo")
.padding()
.glassEffect()
Text("Foo")
.padding()
.glassEffect(in: .rect(cornerRadius: 10))
Text("Foo")
.padding()
.glassEffect(.regular.interactive())
Text("Foo")
.padding()
.glassEffect(.regular.tint(.red))
}Compatibility
iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPhone screenshot for Glass effect.