GlassEffectTransition

A structure that describes changes to apply when a glass effect is added or removed from the view hierarchy.

StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+GlassEffectTransition in SwiftUI

Declaration

React
type GlassEffectTransition = 'identity' | 'matchedGeometry' | 'materialize';
Swift
struct GlassEffectTransition

Pass a literal, or build one with SwiftUI.GlassEffectTransition from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • The identity transition specifying no changes.

  • 'matchedGeometry'SwiftUI.GlassEffectTransition.matchedGeometry

    Returns the matched geometry glass effect transition.

  • 'materialize'SwiftUI.GlassEffectTransition.materialize

    The materialize glass effect transition which will fade in content and animate in or out the glass material but will not attempt to match the geometry of any other glass effects.

Used by

See also

More in Animation.