/InteractiveShape

Interactive shape layer demo for iOS

Primary LanguageObjective-C

Interactive shapes - iOS demo

A quick demo made for this Dribble shot.

It basically just draws two simple bezier curves, something like this:

curves

The "tip" is placed based on pan with fixed control points, and control points of the top and bottom left corners are stretched a bit according to pan's translation along Y axis to make a nicer curve.