>Pan + Rotate a Shape
Center an Object on a Gesture
The easiest way to “drag” an object is to add a pan gesture to the canvas and have the object follow the pan.
Note the use of
ShapeLayer.disableActions = true? This makes sure that the changes to the objects following it are immediate, i.e. they won’t animate.