I have a simple UIViewController and just try to add a subview which fullfills all available safe area. The result with xib, storyboard and sometimes programmatically is the same - Xcode ignores safe area in landscape mode:

The result I expect is approximate the following (side distances to safe area):
How to achieve such behaviour?

Found out that Xcode xibs and storyboards ignore horizontal safe area but apply it later.
The problem of my concrete case is I used
SOPullUpControland wanted to customise its container before presenting. The problem isSOPullUpControlinvolves view frames but safe area insets appear after view controller presentation only. SoSOPullUpControlcan be fully initialised when its container is on screen only.