Contents

matchedTransitionSource(id:in:)

Identifies this view as the source of a navigation transition, such as a zoom transition.

Declaration

nonisolated func matchedTransitionSource(id: some Hashable, in namespace: Namespace.ID) -> some View

Parameters

  • id:

    The identifier, often derived from the identifier of the data being displayed by the view.

  • namespace:

    The namespace in which defines the id. New namespaces are created by adding an Namespace variable to a View type and reading its value in the view’s body method.

See Also

Defining transitions