Thank you for enjoying Designers.how!
Please enter your email address to unlock the rest of this episode.
Don't want to see this? Become a Designers.how member now.
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.