Profile screen

We have to open the storyboard and update the profile screen. Here is the desired result. Don't forget to use constraints:

On the layout, you can see different visual items, which we have to connect with their respective outlets in the ProfileViewController class. We start with the user avatar, UIImageView, then UILabel, which will store the username. This is pretty similar to what we did in FeedCellView earlier. Next, we connect UICollectionView, which will show all the user's posts. The rest of the UIs will be inactive, storing some mock data, such as how many posts were created, how many followers the user has, and how many ...

Get Learn Swift by Building Applications 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.