Contents

zoom(sourceID:in:)

A navigation transition that zooms the appearing view from a given source view.

Declaration

static func zoom(sourceID: some Hashable, in namespace: Namespace.ID) -> ZoomNavigationTransition

Parameters

  • sourceID:

    The identifier you provide to a corresponding matchedTransitionSource modifier.

  • namespace:

    The namespace where you define the id. You can create new namespaces by adding the Namespace attribute to a View type, then reading its value in the view’s body method.

Discussion

Indicate the source view using the View/matchedTransitionSource(id:namespace:) modifier.

See Also

Getting built-in transitions