in visionOS2 what are the changes to NavigationLink and how it interacts with navigationDestination ?

Asked on 08/08/2024

1 search

In visionOS 2, there are notable changes to how NavigationLink interacts with navigationDestination. Specifically, the new zoom transition can be applied to NavigationLink to enhance the visual continuity of transitions.

To adopt the zoom transition, you need to:

  1. Add the navigationTransitionStyle modifier to the presented view, specifying the zoom transition.
  2. Connect this modifier to a source view so that the system knows which view to zoom from.

This approach allows for a more seamless and interactive transition experience, where the same UI elements remain on screen across the transition, enhancing the sense of continuity in your app.

For more details, you can refer to the session Enhance your UI animations and transitions at the 01:49 mark.