Summary
In this chapter, we looked at everything to do with lists. We started by learning how to create a UITableView
object – pulling in contacts from our device and displaying them in the way we want. We then moved on to UICollectionView
, comparing it against our previous implementation and looking at some of the subtle and larger differences it had to offer – such as cell layout and manipulation.
We then delved a little deeper into each of these, specifically looking at layouts with UICollectionView
components, which is one of its most powerful features.
We then finished off by taking a look at the SwiftUI framework and how Apple has made it so easy not only to develop but also to display data in different ways that we have been used to previously with the ease of the declarative syntax and the use of the preview assistant.
In the next chapter, we'll be looking at taking our lists a step further and creating a details page for them to navigate to with...