

And SwiftUI now includes ViewThatFits, which lets you specify multiple variations of a given view and lets SwiftUI automatically choose the one that best fits in the available space. There’s also a new low-level custom Layout API, giving you full control to build exactly the layout your app needs. In addition to VStack and HStack, SwiftUI now offers a new Grid API to simultaneously align views both horizontally and vertically. Advanced layout controlīuild advanced, reusable layouts to power the design of your app.

Leverage programmatic control over your app’s navigation behavior to set its launch state, manage transitions between size classes, respond to deep links, and more.
