|< How to customize the background color of navigation bars, tab bars, and toolbars||How to embed a view in a navigation view >|
Updated for Xcode 14.2
Navigation sits at the heart of so many apps, and SwiftUI does a great job of making it easy out of the box. This means we get a simple and natural approach using
NavigationLink, full control over programmatic navigation using
Navigationpath, support for two- and three-view layout with
NavigationSplitView, and more.
This means a lot of the time you can forget about the easier stuff and focus on the parts that need more thought, such as:
NavigationStackto get exactly the structure you want.
These aren’t necessarily hard, they just take more planning to get right.
SPONSORED Play is the first native iOS design tool created for designers and engineers. You can install Play for iOS and iPad today and sign up to check out the Beta of our macOS app with SwiftUI code export. We're also hiring engineers!
Link copied to your pasteboard.