shu223 / Pulsator

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

Pulse stop working while using in UICollectionviewCell #18

Closed tejas-ardeshna closed 3 years ago

tejas-ardeshna commented 7 years ago

I want to use pulsator in UICollectionviewCell, the code works fine if I am using in UIViewController, but not working inside cell. or it will start pulsing on other position not under perticular item.

let pulsator = Pulsator()
pulsator.numPulse           = 10
pulsator.radius             = 50
pulsator.animationDuration  = 10
pulsator.backgroundColor    = UIColor(r: 231, g: 22, b: 70).cgColor
imgState.layer.superlayer?.insertSublayer(pulsator, below: imgState.layer)
pulsator.start()