interactive
TypeScriptinteractive(isEnabled?: boolean): GlassSwift declarationfunc interactive(_ isEnabled: Bool = true) -> GlassReturns a copy of the glass configured to be interactive.
struct · iOS 26.0+ · SDK 27.1
struct GlassA 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.
interactive(isEnabled?: boolean): GlassSwift declarationfunc interactive(_ isEnabled: Bool = true) -> GlassReturns a copy of the glass configured to be interactive.
tint(color?: (Color) | null): GlassSwift declarationfunc tint(_ color: Color?) -> GlassReturns a copy of the glass with the provided tint color.
static get clear(): GlassSwift declarationstatic 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))
static get regular(): GlassSwift declarationstatic 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.
static get identity(): GlassSwift declarationstatic var identity: Glass { get }The identity variant of glass. When applied, your content remains unaffected as if no glass effect was applied.
No declarations were skipped in this snapshot.