Make an Expanding Splash Animation


Make an Expanding Splash Animation

Published by Chris Slowik

Episode Notes

Extra tips from the author

Masking UIViews

The UIView class has a property called mask, which is another UIView to be used as the layer's mask. The alpha channel of the mask layer will be applied to the masked view. That's the key to pulling off this effect - we mask the home screen and reveal it with our heart shape.

To accomplish this we'll be animating auto-layout constraints with UIView animation blocks. This is one of the most straightforward and bulletproof ways to animate views in Swift.

Episode Topics: