-
Notifications
You must be signed in to change notification settings - Fork 128
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
TZStackViewAlignment compatibility and better iOS 7 support #63
base: master
Are you sure you want to change the base?
Conversation
…settings, & update the deployment target to the lowest supported by the code.
… -- The enum values were in the wrong order, some were concrete values rather than aliases.
…ct adding of NSLayoutConstraints to NSLayoutConstraint.activateConstraints.
\o/ |
I support this PR! -- Have not run it yet. Minor documentation suggestion: the README.md was originally written differently, I suggest making this change to restore the clarity that this library is explicitly good for iOS 8: -- ✅ Compatible with **iOS 7.x** or later
+- ✅ Compatible with **iOS 7.x** and **iOS 8.x** or later Users might not choose a library targeting iOS 7 directly, if they're only trying to support 8 & 9. (It might not be clear if it's relying on deprecated functionality to continue working. -- Because of swift, it isn't!) |
iOS 7 support is already done by me in PR #59 |
This PR is a fork of PR #60 opened bei @fbartho. It adds compatibility between
TZStackViewAlignment
andUIStackViewAlignment
so you can easily convert those values in environments where you want to use TZStackView only if UIStackView is not available (< iOS 9.0).In contrast to #60 this PR fixes the iOS 7 support instead of removing it. Although some features are not available on iOS 7 (like
layoutMarginsRelativeArrangement
orFirstBaseline
alignment) there is no need to completely remove its support.