cheatsheet, swift,

Constraints, Dimensions and Font Sizes

Jules Lee Jules Lee Follow Dec 26, 2019 · 1 min read
Constraints, Dimensions and Font Sizes
Share this

Aside from the dimensions from the image above, I’m sure you are also concerned with dimensions of inner components of the storyboard. I would like to share more of these dimensions. I also admit that I didn’t make the header image, but I did make the images down below, myself. Most of these are inspired by a course by Gwinyai Nyatsoka.

Let’s say we want to achieve the collection cell inside the red annotation, these are its dimensions:

The attributes for the cell’s shadow are as follows:

mainView.layer.shadowOpacity = 0.7
mainView.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.25).cgColor
mainView.layer.shadowRadius = 5
Jules Lee
Written by Jules Lee
Hi, I am Jules, the author of iOS Junkie. Demystifying complex instructions from the internet.