navigationsplitview

Generated on 8/5/2024

1 search

NavigationSplitView is a key component in SwiftUI for creating complex navigation structures, such as sidebars and tab bars, across different Apple platforms. Here are some relevant details from the WWDC 2024 sessions:

  1. Migrate your TVML app to SwiftUI:

    • The floating sidebar from the TV app is now available system-wide in tvOS 18 through SwiftUI. You can build it using the existing NavigationSplitView APIs. This allows for a sidebar with a translucent appearance and compact indicator, which can be adopted with minimal code changes. (Migrate your TVML app to SwiftUI)
  2. What’s new in SwiftUI:

    • The sidebar in iOS 18 has become more flexible, allowing for easy switching between a tab bar and a sidebar representation. This is particularly useful for apps with a lot of content, as it supports customization behaviors like reordering and removing tabs. (What’s new in SwiftUI)
    • The refreshed sidebar looks great on tvOS and can be styled to appear as a sidebar or segmented control in the toolbar. (What’s new in SwiftUI)
  3. Elevate your tab and sidebar experience in iPadOS:

    • New in iPadOS 18, tab bars can now optionally be displayed as a sidebar with several enhancements. When the sidebar is hidden, it animates back into the tab bar, bringing focus back to the content. This is great for content-rich apps with rich hierarchies. (Elevate your tab and sidebar experience in iPadOS)
  4. Platforms State of the Union:

    • The redesigned tab bar in iOS 18 floats at the top of your app and can turn into a sidebar for deeper navigation. This is useful for apps with both simple and deep hierarchies, allowing for a seamless transition between tab bar and sidebar. (Platforms State of the Union)
  5. What’s new in UIKit:

    • The new UI Tab and UI Tab group APIs enable apps to describe their structure to build a tab bar and sidebar, adapting for a native experience on both Mac Catalyst and visionOS. (What’s new in UIKit)

For more detailed information, you can refer to the specific sessions mentioned above.

What’s new in SwiftUI

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.

What’s new in UIKit

What’s new in UIKit

Explore everything new in UIKit, including tab and document launch experiences, transitions, and text and input changes. We’ll also discuss better-than-ever interoperability between UIKit and SwiftUI animations and gestures, as well as general improvements throughout UIKit.

What’s new in AppKit

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.

Migrate your TVML app to SwiftUI

Migrate your TVML app to SwiftUI

SwiftUI helps you build great apps on all Apple platforms and is the preferred toolkit for bringing your content into the living room with tvOS 18. Learn how to use SwiftUI to create familiar layouts and controls from TVMLKit, and get tips and best practices.

Elevate your tab and sidebar experience in iPadOS

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.

Platforms State of the Union

Platforms State of the Union

Discover the newest advancements on Apple platforms.

Xcode essentials

Xcode essentials

Edit, debug, commit, repeat. Explore the suite of tools in Xcode that help you iterate quickly when developing apps. Discover tips and tricks to help optimize and boost your development workflow.