The example uses Swift, and shows how to take a screenshot, set up an image mask, and how to create the zooming effect using Core Animation.
Here’s an animation from the tutorial show’s the created effect:
You can find the tutorial on Rounak’s site here.
You can find the source code on Github here.