I can't properly constrain a view on the iPhone X to be above the bottom opaque toolbar.
You can see here that the view constrained to the bottom of the Safe area is obscured by the toolbar:
While for other iPhone models and sizes the view is correctly displayed above the toolbar:
Here are the constraints I've added:
Could someone kindly explain me what should I do?
This is definitely iOS bug.
Try use translucent toolbar because bug is not reproducible when toolbar is translucent.
Other option is to add toolbar directly on view controller
来源:https://stackoverflow.com/questions/46701391/iphone-x-safe-area-appears-to-be-below-opaque-toolbar