IntrepidPursuits / swift-wisdom

A collection of additions to the Swift Standard Library created by Intrepid Pursuits developers
MIT License
39 stars 14 forks source link

SafeArea helpers #147

Closed alexpersian closed 6 years ago

alexpersian commented 6 years ago

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.

ghost commented 6 years ago
1 Warning
:warning: The iPhone simluator specified in your Jenkinsfile is invalid for this version of Xcode
1 Message
:book: Executed 167 tests, with 0 failures (0 unexpected) in 0.561 (0.682) seconds

Generated by :no_entry_sign: Danger