Roulette like wheel animation

In the last tutorial(https://suagisreal.wordpress.com/basic-animation-to-make-things-better/) we created On/Off effect animation on oval circle.

Now you will to make and use animation on Oval Shape and rotate until its rotation velocity reduces to zero. It is like a roulette wheel which keeps rotation and gradually stops.

ezgif.com-video-to-gif.gif

You can download the complete project from : https://github.com/sulabh191/SASpinner

Spinner Module consist of – SpinnerView – UIView , (OvalLayer ,TriangleLayer) – CAShapeLayer.
SpinnerView Class has OvalLayer as Circle and Triangle Layer as Pointed figure(use for pointing at rotaion angle).

to add this animation into project , just add spinnerView to viewController and set spinnerProtocol Delegate .Delegate function will use to fetch final Angle at which Spinner Wheel Stopped.

To Start Rotation call function callSpinTimer() .

!!