Chapter 5: Creating New Components and Grouping Views with Container Views
Form
views are one of the best ways to get input from users. Proper implementation of forms improves the User Experience (UX) and increases the chances of retention, whereas complex or frustrating forms lead to a negative UX and low retention rates. We used forms and containers in the earlier chapters, but here we will learn additional ways of using forms.
We will also learn more about SwiftUI's TabView
struct; this is similar to UIKit's UITabBarController
, which provides an easy and intuitive way to present multiple views to the user while allowing them to easily navigate between each of them.
In this chapter, we will focus on grouping views using Form
and TabView
views. The following concepts will be discussed:
- Showing and hiding sections in forms
- Disabling and enabling items in forms
- Filling out forms easily using Focus and Submit
- Navigating between multiple views with...