scrollTransition
Applies the given transition, animating between the phases of the transition as this view appears and disappears within the visible region of the containing scroll view.
Overloads
2 ways to call compose().scrollTransition(). Each is one SwiftUI overload, picked by the arguments you pass.
compose().scrollTransition(
configuration: SwiftUI.ScrollTransitionConfiguration | undefined,
options: {
axis?: SwiftUI.Axis | null;
transition: (effect: SymbolicEffect, arg1: SymbolicValue) => SymbolicEffect;
}
)nonisolated func scrollTransition(
_ configuration: ScrollTransitionConfiguration = .interactive,
axis: Axis? = nil,
transition: @escaping @Sendable (EmptyVisualEffect, ScrollTransitionPhase) -> some VisualEffect
) -> some ViewParameters
configuration*SwiftUI.ScrollTransitionConfiguration | undefinedThe configuration controlling how the transition will be applied. The configuration will be applied both while the view is coming into view and while it is disappearing (the transition is symmetrical).
options.axisSwiftUI.Axis | nullThe axis of the containing scroll view over which the transition will be applied. The default value of
niluses the axis of the innermost containing scroll view, or.verticalif the innermost scroll view is scrollable along both axes.options.transition*(effect: SymbolicEffect, arg1: SymbolicValue) => SymbolicEffectA closure that applies visual effects as a function of the provided phase.
See also
More in Animation.
- animationApplies the given animation to all animatable values within the body closure.
- contentTransitionModifies the view to use a given transition as its method of animating changes to the contents of its views.
- glassEffectTransitionAssociates a glass effect transition with any glass effects defined within this view.
- keyframeAnimatorLoops the given keyframes continuously, updating the view using the modifiers you apply in body.
- matchedGeometryEffectDefines a group of views with synchronized geometry using an identifier and namespace that you provide.
- matchedTransitionSourceIdentifies this view as the source of a navigation transition, such as a zoom transition.
- phaseAnimatorAnimates effects that you apply to a view over a sequence of phases that change continuously.
- springLoadingBehaviorSets the spring loading behavior this view.
- transitionAssociates a transition with the view.