swiftui navigation
Asked on 08/05/2024
4 searches
SwiftUI navigation has been enhanced with several new features and capabilities presented at WWDC 2024. Here are some key points:
-
Navigation Split View: SwiftUI now supports building navigation split views, which are particularly useful for creating sidebars. This is highlighted in the session Migrate your TVML app to SwiftUI, where the floating sidebar from the TV app is now available system-wide in tvOS 18 through SwiftUI.
-
Tab and Sidebar Experience: The session Elevate your tab and sidebar experience in iPadOS discusses how to enable sidebars with
TabView
in SwiftUI. This allows for a more integrated appearance and user customization, such as reordering and hiding tabs. -
New TabView Syntax: SwiftUI introduces a new type-safe syntax for
TabView
to catch common errors at build time. This is covered in the session What’s new in SwiftUI, which also mentions the flexibility of switching between tab bar and sidebar views. -
Zoom Navigation Transition: A new zoom navigation transition is available in SwiftUI, making expanding information look more visually appealing. This is detailed in the session What’s new in SwiftUI.
-
SwiftUI Menus in AppKit: For macOS applications, SwiftUI menus can now be used within AppKit contexts, allowing for a seamless integration of SwiftUI navigation elements in traditional macOS apps. This is explained in the session What’s new in AppKit.
Relevant Sessions
- SwiftUI essentials
- Enhance your UI animations and transitions
- Migrate your TVML app to SwiftUI
- What’s new in AppKit
- What’s new in SwiftUI
- Elevate your tab and sidebar experience in iPadOS
These sessions provide a comprehensive overview of the new navigation features and improvements in SwiftUI.

What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and 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.

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.