Xcode 6 view controller showing blank screen with autolayout

I recreated the issue by adding a collection view to a standard view controller and this seems to be the problem:

Constraints added when selecting "Add suggest constraints"

enter image description here Having Xcode add suggested constraints gives you this, which causes the view to not show up.

It is aligning the view's left and right to the layout guides (which doesn't seem to be right)

You will have to manually add spacing constraints to your view.

This is what you want:

enter image description here


Try turning on the assistant editor and use Preview while tweaking your constraints.

Screenshot
(source: mattknott.com)