Part 2: Scrollable Views
In this part, we will start by walking through using the various scrollable interfaces in SwiftUI – ScrollView and List – to display lists and ensure the iOS system keyboard is managed effectively. You’ll learn to incorporate NavigationView
to enchance view titles, navigate through different views with @ViewBuilder
, understand the intricacies of ScrollView, manage keyboard interactions with @FocusState
, and employ ScrollViewReader
to accurately position elements within lists and scroll views.
You will then begin your journey toward mastering grid layouts in SwiftUI, utilizing the various grids available in SwiftUI for layout management, both eager and lazy, applying conditional formatting to your views, and adapting your designs to accommodate device orientation changes.
This part contains the following chapters:
- Chapter 4, Exploring Lists, Scroll Views, and Navigation
- Chapter 5, The Art of Displaying Grids