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

Update / Remake Constraints #6

Closed
fabb opened this issue Jun 24, 2014 · 1 comment
Closed

Update / Remake Constraints #6

fabb opened this issue Jun 24, 2014 · 1 comment

Comments

@fabb
Copy link

fabb commented Jun 24, 2014

First off: awesome idea to use operator overloading for defining layout constraints.
There's one catch though - other autolayout frameworks provide methods to update / remove / remake layout constraints.
Like Masonry: https://github.com/Masonry/Masonry/blob/master/Masonry/View%2BMASAdditions.h#L68

How could we represent this with overloaded operators?
I guess removing constraints better would be an own method call. It could also be called before making new constraints to provide the same functionality as remake. That leaves update. Should update be the default behavior?

@indragiek
Copy link
Owner

While that is a useful piece of functionality, I think its beyond the scope of what SwiftAutoLayout was intended to be, which is simply a better syntax for creating constraints. How you manage those constraints is entirely up to you, and the library isn't mean to influence that.

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

2 participants