cloudkite/Masonry — pull request #63 by nickynick (2014-04-27 12:26:25+00:00)
Title: Added mas_remakeConstraints

When working with Masonry, sometimes there is a need to update existing constraints for a view to do some kind of animation or whatever. `mas_updateConstraints` is only capable of updating constraint constants, so for more advanced changes we are forced to store created constraints in a separate array and then call `uninstall` on each prior to creating new ones.

This is quite tedious, so I had an idea for a new method, `mas_remakeConstraints`. It is very simple: it removes all constraints previously defined and installed for the view, allowing you to provide replacements without hassle.

Under the hood, it stores a `MASViewConstraint` in a private associated set of its `firstViewAttribute.view`, so it's quite simple implementation-wise too.

#### TODO list:
- [ ] tests :)