28. SwiftUI Lists and Navigation
The SwiftUI List view provides a way to present information to the user in the form of a vertical list of rows. Often the items within a list will navigate to another area of the app when tapped by the user. Behavior of this type is implemented in SwiftUI using the NavigationView and NavigationLink components.
The List view can present both static and dynamic data and may also be extended to allow for the addition, removal and reordering of row entries.
This chapter will provide an overview of the List View used in conjunction with NavigationView and NavigationLink in preparation for the tutorial in the next chapter entitled “A SwiftUI List and Navigation Tutorial”.
28.1 SwiftUI Lists
The SwiftUI List control ...
Get SwiftUI Essentials – iOS 14 Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.