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 ...