AnyTransition
A type-erased transition.
Declaration
type AnyTransition =
| 'identity'
| 'opacity'
| 'scale'
| 'slide'
| { asymmetric: { insertion: AnyTransition; removal: AnyTransition; }; }
| { move: { edge: Edge; }; }
| { offset: { x?: number; y?: number; }; }
| { offset: CGSize; }
| { push: { from: Edge; }; }
| { scale: { scale: number; anchor?: UnitPoint; }; }
| AnyTransitionChain;@frozen struct AnyTransitionPass a literal, or build one with SwiftUI.AnyTransition from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'identity'SwiftUI.AnyTransition.identityA transition that returns the input view, unmodified, as the output view.
'opacity'SwiftUI.AnyTransition.opacityA transition from transparent to opaque on insertion, and from opaque to transparent on removal.
'scale'SwiftUI.AnyTransition.scaleReturns a transition that scales the view.
'slide'SwiftUI.AnyTransition.slideA transition that inserts by moving in from the leading edge, and removes by moving out towards the trailing edge.
Type methods
Overview
- See Also:
Transition
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Animation.
- AnimationThe way a view changes over time to create a smooth visual transition from one state to another.
- AnimationChainAnimation with chained calls: SwiftUI.Animation.delay(...).
- AnimationCompletionCriteriaThe criteria that determines when an animation is considered finished.
- AnimationTimelineScheduleA pausable schedule of dates updating at a frequency no more quickly than the provided interval.
- AnyTransitionChainAnyTransition with chained calls: SwiftUI.AnyTransition.animation(...).
- BlurReplaceTransitionA transition that animates the insertion or removal of a view by combining blurring and scaling effects.
- BlurReplaceTransitionConfigurationConfiguration properties for a transition.
- ContentTransitionA kind of transition that applies to the content within a single view, rather than to the insertion or removal of a view.
- DropSessionPhaseThe phase of the current drop session.
- GlassEffectTransitionA structure that describes changes to apply when a glass effect is added or removed from the view hierarchy.
- IdentityTransitionA transition that returns the input view, unmodified, as the output view.
- KeyframesA type that defines changes to a value over time.