Animations with Constraints
Swift Animations
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.

Comments (0)
HELP & SUPPORT