shu223 / Pulsator

Pulse animation for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animation isn't properly stops.

antonkashpor opened this issue · comments

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