-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Updating Constraint contant? #63
Comments
Define how you would like to update said constraint? Are you looking to just update the "constant" or also re-assign the LHS/RHS? If you strictly say want to update that 107 to maybe 40 or something you would just need to: snp_updateConstraints { make in
make.top.equalTo(40)
} |
Thanks for responding. |
After reading your other response to my other question I think I'm not approaching this properly. |
@nickvelloff it's important to note there are a couple parts to a constraint. Remember the
The RHS can be nil, in cases where you do an So yes in your particular case you are altering the LHS/RHS of the constraint and thus need a new one. |
I was confusing the meaning of |
If I hang onto a constraint like:
How would I update the constant later?
The text was updated successfully, but these errors were encountered: