© Bear Cahill 2021
B. CahillUI Design for iOS App Developmenthttps://doi.org/10.1007/978-1-4842-6449-2_7

7. List of Items

Bear Cahill1  
(1)
Denton, TX, USA
 

In this chapter, we’ll turn our attention back to the UI as far as visual elements go. We’ve seen how to add simple elements like Text and Button. Now we’ll look at listing items.

If you’ve used UIKit in the past, you’re undoubtedly familiar with UITableView and its assortment of relatives: UITableViewController, UITableViewDataSource, UITableViewDelegate, and UITableViewCell.

In SwiftUI, we’ll use a List in place of the UITableView. For the rows, we’ll use Views just like we have been using. Doesn’t that sound much more simple? No prototype cells. No back and forth of the table asking for a cell ...

Get UI Design for iOS App Development: Using SwiftUI 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.