Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout giudes on iOS 9 #207

Closed
dlahyani opened this issue Jun 11, 2015 · 2 comments
Closed

Layout giudes on iOS 9 #207

dlahyani opened this issue Jun 11, 2015 · 2 comments

Comments

@dlahyani
Copy link

On iOS 7 (if I am not mistaken) Apple introduced two new properties to UIViewController: topLayoutGuide and bottomLayoutGuide. These properties can be passed as is to auto layout as constraint items. In iOS 7 and 8 these are actually UIView objects that implements the UILayoutSupport protocol and as UIViews they fit well as layout items for Masonry.
However on iOS 9 these layout guides are of kind UILayoutGuide which is not a subclass of UIView, this causes [MASViewConstraint setSecondViewAttribute:] raise an assertion exception when the second attribute is a layout guide.

@cloudkite
Copy link
Contributor

@dlahyani Yes happy to accept PRs which have the same API as recently added SnapKit layout guide support see SnapKit/SnapKit@6252444

@dlahyani
Copy link
Author

👍 thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants