Building views that work on multiple device sizes isn’t easy. Luckily, SwiftUI has a bunch of APIs to help developers achieve whatever type of UI they can imagine, while still supporting accessibility and the many devices of the Apple ecosystem.
AnyLayout and ViewThatFits are two great SwiftUI views that help take the load off of developers so they can focus on building amazing features while SwiftUI takes care of the rest.
In this lesson, you learned:
About AnyLayout and how it can change the arrangement of its subviews without destroying and recreating them.
About the new Layout protocol and how you can use it to build complex container layouts.
How to use ViewThatFits to allow it to choose for you the best view for the available space.
In the next module, you’ll learn about SwiftUI Navigation and how navigation behaves in a SwiftUI app. You’ll also learn the diverse navigation patterns available to iOS developers.
See forum comments
This content was released on Jun 20 2024. The official support period is 6-months
from this date.
Here, we go over the highlights of the lesson and what’s next module.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.