Change size of safe area of view controller in Storyboard in Xcode

1.2k Views Asked by At

Somehow the safe area for a view controller that I have placed in a storyboard has picked up an odd starting value for Y of 88. This is pushing everything linked to it, mainly a tableview down.

enter image description here

There are a few other weird things about the view controller. If I leave it on Fixed, the viewcontroller has a height of 896. I can change to freeform and then manually reduce the size but that fails to change the safe area and everything is still pushed down. If I change to freeform and back to fixed, the VC goes back to 896.

I have tried unchecking safe area and then rechecking but same problem recurs.

Would appreciate any suggestions on how to resolve this.

Thanks in advance for any suggestions.

1

There are 1 best solutions below

2
On

Hmm, 88 sounds like navigation bar (44) + top safearea (44), have you embedded a navigation controller to this viewcontroller from storyboard? If so, the height of navigation controller will be carried over.

enter image description here