I am having status bar issues. I have a
View controller-based status bar appearance
Turns out the
topLayoutGuide was pushing my view down by 20 pixels for the status bar. Because it was expecting a status bar, the
topLayoutGuide adds this 20 pixel space.
In my storyboard the topmost subview of my view controller had a constraint to fix it to the top of my view. This constraint was the
view top equal to
This meant that when the
topLayoutGuide added the 20 pixel space, my entire view was offset by that.
By changing the constraint to fix to the
topLayoutGuide top instead, the space created is now just sitting underneath my normal subviews not causing any problems.