The problem
I created a UICollectionViewController with a custom UICollectionViewCell. The custom cell contains a large and rectangular UIView (name
I had the same issue with a UICollectionViewCell using auto layout constraints.
UICollectionViewCell
I had to call layoutIfNeeded before I was configuring my subview that relied on the views frame width.
layoutIfNeeded