Skip to content

sriscode/DragAlongBeizurePath

Repository files navigation

Drag Along BezierPath in Swift

Drag UIView along the UIBezierPath

This code provides the solution to drag the uiview along the UIBezierPath curve (QuadCurve). It calculates the intermediate point on the quad curve at the specific durations of the draw and centers the uiview accordingly. Code explained at https://machinethinks.com/pan-drag-uiview-on-UIBezierPath/

Drag View on UIBezierPath