Home screen

The home screen will display a list of all recent posts published by other users. The list is created by combining all the published posts. We have to design it from scratch using our knowledge about UIViewCollections. We will need a function that loads the data from Firebase. Here are the steps that we should perform to implement the new home screen View Controller.

First, start with the UI of the home screen. Try to recreate the following layout:

It has UICollectionView, which is stretched so it takes the whole screen estate and reaches the Safe Area.

The Safe Area is the recommended rectangle in which your app should fit to ...

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.