In iOS 11.0 the new safeAreaInsets and safeAreaLayoutGuide features were added to handle laying out based on the Safe Area. This feature is not available in iOS 10 and below though, and if you try to use them the layout will go to the superview instead of the layout guides. Meaning that you need to make sure to wrap the safe area access in #available calls all the time.
This PR adds helper properties to remove the need for wrapping iOS 11.0 checks when setting layout guides.
In iOS 11.0 the new
safeAreaInsets
andsafeAreaLayoutGuide
features were added to handle laying out based on the Safe Area. This feature is not available in iOS 10 and below though, and if you try to use them the layout will go to thesuperview
instead of the layout guides. Meaning that you need to make sure to wrap the safe area access in#available
calls all the time.This PR adds helper properties to remove the need for wrapping iOS 11.0 checks when setting layout guides.