I found that if the UIView overlaps or another view, this problem also occurs - for example, if you want to put the image side by side, and you also have a full-screen preview of the camera.
For me, the solution was to drag the view where I wanted (that is, one way), and then set the restrictions, and since then it behaved correctly - I did not have to delete the safe view. This is with Xcode 10.1.
Mick
source share