matchedTransitionSource
Identifies this view as the source of a navigation transition, such as a zoom transition.
View ModifieriOS 18.0+macOS 15.0+tvOS 18.0+watchOS 11.0+visionOS 2.0+matchedTransitionSource(id:in:) in SwiftUI
Declaration
compose().matchedTransitionSource({
id: string | number | boolean,
in: string,
})nonisolated func matchedTransitionSource(
id: some Hashable,
in namespace: Namespace.ID
) -> some ViewParameters
options.id*string | number | booleanThe identifier, often derived from the identifier of the data being displayed by the view.
options.in*string
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.
- phaseAnimatorAnimates effects that you apply to a view over a sequence of phases that change continuously.
- scrollTransitionApplies 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.
- springLoadingBehaviorSets the spring loading behavior this view.
- transitionAssociates a transition with the view.