Summary
In this section, we started by creating a brand-new View Controller dedicated to displaying selected user information. We learned about the different types of segues, including navigation-based segues and model-based segues. We were also introduced to creating segues both programmatically and via Interface Builder.
Once we had our connectors all set up, we then started to build our new Detail View Controller, populating it with a contact's information and using the power of UIStackView
to lay out our labels and image views.
We finished off by wiring everything together. We performed some best practices and created a custom view model that we can now pass over to our new Detail View Controller via the prepare()
override.
In the next chapter, we'll go deep into the use of animations and transitions in iOS as we start to get creative!