One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Glass

struct · iOS 26.0+ · SDK 27.1

struct Glass

A structure that defines the configuration of a physical glass material. You provide instances of glass to the ``View/glassEffect(_:in)`` view modifier which: Label("Flag", systemImage: "flag.fill") .padding() .glassEffect() You can combine glass effects by using a ``GlassEffectContainer`` which supports morphing glass shapes into each other based on the geometry of their associated views.

Members (5)

method · iOS 26.0+

interactive

TypeScript
interactive(isEnabled?: boolean): Glass
Swift declaration
func interactive(_ isEnabled: Bool = true) -> Glass

Returns a copy of the glass configured to be interactive.

method · iOS 26.0+

tint

TypeScript
tint(color?: (Color) | null): Glass
Swift declaration
func tint(_ color: Color?) -> Glass

Returns a copy of the glass with the provided tint color.

get · iOS 26.0+

clear

TypeScript
static get clear(): Glass
Swift declaration
static var clear: Glass { get }

The clear variant of glass. When using clear glass, ensure content remains legible by adding a dimming layer or other treatment beneath the glass. For example, you could add a transparent black color beneath your glass to ensure content remains legible above the glass. Label("Flag", systemImage: "flag.fill") .padding() .glassEffect(.clear) .background(.black.opacity(0.3))

get · iOS 26.0+

regular

TypeScript
static get regular(): Glass
Swift declaration
static var regular: Glass { get }

The regular variant of glass. The regular variant of glass automatically maintains legibility of content by adjusting its content based on the luminosity of the content beneath the glass.

get · iOS 26.0+

identity

TypeScript
static get identity(): Glass
Swift declaration
static var identity: Glass { get }

The identity variant of glass. When applied, your content remains unaffected as if no glass effect was applied.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →