-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Constrictor 5.0.0 #22
Conversation
…youtConstraint+Set
Codecov Report
@@ Coverage Diff @@
## master #22 +/- ##
======================================
Coverage 100% 100%
======================================
Files 9 22 +13
Lines 197 468 +271
======================================
+ Hits 197 468 +271 |
Great job 👍 |
extension Anchor { | ||
|
||
func constraints(for constraints: Constraints) -> [NSLayoutConstraint] { | ||
switch self{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a space between "self{" 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! 👍
} | ||
|
||
func constraints(for constraints: Constraints) -> [NSLayoutConstraint] { | ||
switch self{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
What was done?
Why?
This was mainly done because its learning curve was way too high, as well as, adding the "update constraint feature" was way too hard in its previous state.
Code Sample
I strongly advise you to read the new README.md
Still here are some examples
New Features
It's now possible to easily update constraints without tricky identifiers or filters.
Lost Features
inParent
/toParent
sugar - To do? Maybe in the futureBefore vs Now
Example 1
4.1.0 (Before)
5.0.0 (Now)
Example 2
4.1.0 (Before)
5.0.0 (Now)
Example 3
4.1.0 (Before)
5.0.0 (Now)