Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Xamarin Designer replaces constraints to Superview with constraints to Safe Area

$
0
0

We are trying to create a custom header following the steps described here:
https://medium.com/@kahseng.lee123/creating-custom-navigation-bar-tab-bar-for-iphone-x-f03b1e1827d3

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?

CompaNova LLC


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>