Posts

Post marked as solved
2 Replies
983 Views
I have a view that I would like to be kept in the "safe area" in the iPhone X, never obscured by either the corners or the notch. That requirement is easy enough to fullfill using the safeAreaLayoutGuide API. However, I want the view to extend under any navigation or toolbars that appear. Even with "Extend edges" under top bars, bottom bars, and opaque bars, the safeAreaLayoutGuide is always adjusted to not be under the bars. Is there some compromise that I'm missing that keeps the view out from under the corners and notch, but allows it to be under the bars? Is there some property on the view controller that I could use as a constant for a constraint relative to the top and bottom anchors that I am missing? It seems like all of the various insets properties on the view controller are all zero when I inspect them, but perhaps I've missed one? Thanks!
Posted
by amolloy.
Last updated
.