Content Size becomes smaller after adding a segue in XCode

I am in the middle of attempting to create an iOS app. It has two screens at the moment, between which I am attempting to add a segue.

However, when I add a segue (no matter what type of segue I add) the second screen's content shifts down by 54 pixels. This includes the background (to which I tried adding constraints, it still shifts down), the Safe Area, and the UI content of the second screen. All of it shifts downward by 54 pixels immediately upon adding a segue. When I check the attributes panel to try to identify the problem, it says Screen One's Content Size is 414 x 896 ...these numbers are there automatically and were not altered manually and Content Size is unchecked.

However, for Screen Two's Content Size - after adding the segue - it says 414 x 842. These numbers are also there automatically and were not altered manually and Content Size is unchecked. (Before adding the segue, the Content Size for both screens was identical and were placed there automatically, Content Size unchecked).


This means this isn't just a matter of the content shifting downward upon adding a segue - but instead an issue of the Content Size becoming 56 pixels smaller upon adding a segue (this includes the safe area).


I have little to no code in my project yet. Just one IBAction. I have warnings regarding constraints showing up as well; I've included links to screenshots of both:


Screenshot of Warnings: https://uniim1.shutterfly.com/ng/services/mediarender/THISLIFE/023076556253/media/64875383979/medium/1575367343/enhance



Screenshot of Code: https://uniim1.shutterfly.com/ng/services/mediarender/THISLIFE/023076556253/media/64875383982/large/1575367343/enhance


Does anyone know why my second screen's Safe Area (and all its content) is behaving this way every time I add a segue? Why is this happening and what I can do to prevent this? Please help. Thank you.

Accepted Reply

Have you checked the second VC presentation mode ? Is it automatic or full screen ?

Automatic move view down 54 pts on iPhone X and higher…

Replies

Have you checked the second VC presentation mode ? Is it automatic or full screen ?

Automatic move view down 54 pts on iPhone X and higher…

Child inherits from parent, so this seems typical, I think.

Thank you so much for this information. I finally fixed it and understand why this was happening. Thanks a million!