How to Animate with Auto Layout Constraints

Profile Picture
- Published on Nov 21, 2017馃審 Public

What always seems to be difficult for newcomers to Auto Layout is the implementation of animation with constraints. The trick is to capture your anchors with a local property, and modify it's active or constant properties. Afterwards, you can call an animation block with layoutIfNeeded to begin animating to the new properties. Animating with constraints is especially useful to maintain view locations without having to recalculate CGRect values. Have fun. Intermediate Training Core Data Instagram Firebase Course Facebook Group iOS Basic Training Course Completed Source Code Follow me on Twitter: