Dennis Lau
Dennis Lau

Reputation: 811

Xcode Safe Area Glitch With iPhone SE & 4s

I was setting up constraints when I realize things don't look right on iPhone SE and 4s. As shown below, the safe area is out of bounds. Any way to get around it so I can get an accurate look at my view?

It works alright on iPhone 8, 8+ and X

iPhone X Layout

But on 4s and SE, this happens, so many errors pop up despite it working fine when built and run on simulator

iPhone 4s Layout It works ok when built

Upvotes: 2

Views: 1015

Answers (1)

D-A UK
D-A UK

Reputation: 1174

It will sometimes glitch when viewing it in main.storyboard, but when the project builds and runs, it will reinitiate those constraints and follow them to build the view.

I recommend that you try running the project, and all should be fixed.

Upvotes: 1

Related Questions