Next, we want to add auto layout to our cell.
- In the Outline view, select the Image View and then the Pin icon. Enter the following values:
-
- Top: 0
- Left: 0
- Right: 0
- Constrain to margins: unchecked
- Height: 177 (checked)
- Click Add 4 Constraints.
- Next, select the label and enter the following values:
-
- Left: 5
- Right: 5
- Top: 2
- Height: 21
- Constrain to margins: unchecked
- Click Add 4 Constraints.
Our cell setup is complete. We have one more View Controller to do and that is our Add Review section.