Last active
January 6, 2019 20:29
-
-
Save pedrommcarrasco/1819ab318af946b29b0e5998b2d666a1 to your computer and use it in GitHub Desktop.
Power-Up Your Anchors - Using priorities (before)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let bWidth = b.widthAnchor.constraint(equalToConstant: 50.0) | |
bWidth.priority = .defaultHigh | |
// or if you want between .defaultHigh and .required 👇 🤮 | |
bWidth.priority = UILayoutPriority(UILayoutPriority.defaultHigh.rawValue + 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment