SwiftUI BasicsLesson 46Free preview
SwiftUI Lists & Forms
This lesson is part of Swift · All levels
Summary
This lesson discusses creating rolling lists of data using the List and settings interface using the Form in SwiftUI. The list is equivalent to UITableView which efficiently renders cells lazily. While Form adopts a built-in iOS-style grouped cell display that is ideal for input forms and user preferences.
Key points
- The 'List' component displays dynamically and efficiently scrolling data lists
- Data models within the list are recommended to adopt the 'Identifiable' protocol with the 'id' property.
- The 'Form' component groups input elements such as Toggle, Picker, and TextField
- The 'Section' component divides the list or form into header-labeled sections
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.