Subscribe to The infinite monkey theorem

Stay up to date! Get all the latest & greatest posts delivered straight to your inbox

auto-layout

A collection of 6 posts

Positioning views relative to one another with auto-layout cover image
xcode,  auto-layout,  swift

Positioning views relative to one another with auto-layout

Positioning views relative to one another with auto-layout was fairly tricky until...

Stack views vertically or horizontally on iOS 8 using AutoLayout cover image
ios,  auto-layout,  swift

Stack views vertically or horizontally on iOS 8 using AutoLayout

While starting iOS 9 we have UIStackView, it is a little bit tricky to stack views vertically or horizontally.

Debugging view constraints with Xcode 7 cover image
xcode,  objc,  swift,  auto-layout

Debugging view constraints with Xcode 7

A small button named 'Debug view hierarchy', displays current view hierarchy in 3D.

Unwanted padding in UICollectionView in iOS 10 cover image
swift,  ios,  auto-layout

Unwanted padding in UICollectionView in iOS 10

On iOS 10, a collection view embedded in a view has unexpected padding at the top.

Setting height constraint for a view in a cell cover image
ios,  swift,  auto-layout

Setting height constraint for a view in a cell

We needed a collection view cell that contained an image view and a label.

UIScrollView with AutoLayout, programmatically cover image
swift,  auto-layout

UIScrollView with AutoLayout, programmatically

It is fairly easy to use UIScrollView with the AutoLayout on iOS 12+ but only if one follows the following steps ...