This app helps understand how layout works. Visual format and Anchors
-
translatesAutoresizingMaskIntoConstraints
-
addSubview()
-
widthAnchor,heightAcnhor
-
topAnchor, bottomAnchor, leftAnchor, rightAnchor
-
leadingAnchor, trailingAnchor
-
centerXAnchor, centerYAnchor
iPhone 6S and 6S Plus.
iPhone SE.
iPhone 7 and 7 Plus.
iPhone 8 and 8 Plus.
iPhone X.
iPhone XS, XS Max and XR.
iPhone 11, 11 Pro and 11 Pro Max.
I won't add any features here, I'll use this project as playground for exploring layout even deeper.
The anchors one of the ways creating layout, from my perspective it is the best and easiest way of doing layout.
Comparing Anchors with Visual Format Language, i'd prefer Anchors