shu223 / Pulsator

Pulse animation for iOS
MIT License
1.42k stars 160 forks source link

Animation isn't properly stops. #32

Open antonkashpor opened 7 years ago

antonkashpor commented 7 years ago

Hello,

I have faced to an issue. After initializing the Pulsator it doesn't stops animation.

Here some example: private func setupPulsator() { pulsator.radius = imageButton.bounds.width - 30 pulsator.numPulse = 3 pulsator.position = imageButton.center imageButton.layer.superlayer?.insertSublayer(pulsator, below: imageButton.layer) pulsator.start() }

And then pulsator.stop() doesn't work.

Where is my mistake?

Thank you