auto-layout

A collection of 6 posts

Xcode

iOS Auto Layout in Xcode: Position Views Relative to Each Other

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

  • xcode
  • auto-layout
  • swift
iOS

Stack Views on iOS 8 with Auto Layout (Without UIStackView)

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

Xcode

Debug Auto Layout Constraints with Xcode 7’s Debug View Hierarchy

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

Swift

Fix Unwanted Top Padding in UICollectionView on iOS 10

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

iOS

Fix Auto Layout "Unable to Satisfy Constraints" for Fixed-Height Views in Cells

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

Swift

UIScrollView with Auto Layout in Code: Step-by-Step Guide for iOS 12+

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

Subscribe to The infinite monkey theorem

We fling fresh posts—no banana peels attached—straight to your inbox.