what were the changes in visionOS2 to navigationLink and navigationdestination

Asked on 08/08/2024

1 search

In visionOS 2, there have been notable changes to NavigationLink and NavigationDestination to enhance the user experience. Specifically, the introduction of the zoom transition allows for a more seamless and visually appealing navigation experience.

To implement the zoom transition, you need to:

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

This new transition style is designed to increase the sense of continuity in your app by keeping the same UI elements on screen across the transition.

For more details, you can refer to the session Enhance your UI animations and transitions at the timestamp 02:07.