We are trying to create a custom header following the steps described here:
Everything works fine and background view snaps to superview leading and trailing ages as expected. It does it correctly in both landscape and portrait mode and on both iPhone X as well as on iPhone 8.
However, if we close the storyboard and open it again, the background view constraints that were set to leading and trailing ages of superview get replaced with constraints to Safe Area. This breaks the design where the background view would not extend all the way to the edges on iPhone X.
We reproduced this behavior with a simple view on both Visual Studio Mac and Microsoft Visual Studio for Windows
Is this a bug or expected behavior? If later, what would be the correct way to extend the background view to the edges of the screen on both iPhone 8 and iPhone X?