Chapter 4: Creating a Detail Page
So far, you have managed to build an app that shows a set of contacts on a custom grid in a collection view. This is pretty impressive but not very useful. Typically, a user will expect to be able to see more information when tapping on an item in an overview.
In this case, they would likely expect to see more details about the tapped contact, for instance, their email address and phone number. In this chapter, you will see how to do just that.
We'll also be introduced to UIStackView
for the first time too, a comprehensive and powerful way to lay out a display without the need for over-complex autolayout solutions.
Finally, we'll touch on the best practices when it comes to passing data from one view controller to another.
The following topics will be covered in this chapter:
- Implementing navigation with segues
- Creating our layout with
UIStackView
- Passing data between view controllers