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:
- Add the
navigationTransitionStyle
modifier to the presented view, specifying the zoom transition. - 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.

Elevate your tab and sidebar experience in iPadOS
iPadOS 18 introduces a new navigation system that gives people the flexibility to choose between using a tab bar or sidebar. The newly redesigned tab bar provides more space for content and other functionality. Learn how to use SwiftUI and UIKit to enable customization features – like adding, removing and reordering tabs – to enable a more personal touch in your app.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.

Get started with HealthKit in visionOS
Discover how to use HealthKit to create experiences that take full advantage of the spatial canvas. Learn the capabilities of HealthKit on the platform, find out how to bring an existing iPadOS app to visionOS, and explore the special considerations governing HealthKit during a Guest User session. You’ll also learn ways to use SwiftUI, Swift Charts, and Swift concurrency to craft innovative experiences with HealthKit.