< 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:
NavigationSplitView
and NavigationStack
to get exactly the structure you want.These aren’t necessarily hard, they just take more planning to get right.
SAVE 50% To celebrate WWDC23, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.
Link copied to your pasteboard.