Reputation: 25
I'm having issues on creating an sliding drawer for a phone app, so, I have a landing screen and I have to display a drawer with animation, I already have the content of the drawer using masonry autolayout and I need to have the drawer animation and also the possibility to scroll up the drawer to close it, do you know how to handle that kind of animation using masonry autolayout?
Upvotes: 0
Views: 135
Reputation: 48524
Grab a hold of the NSLayoutContraint
, and change it's constant
.
This can also be animated.
Replacing a NSLayoutContraint
programmatically will also have the same effect.
Upvotes: 0