shu223 / PulsingHalo

iOS Component for creating a pulsing animation.
MIT License
1.77k stars 240 forks source link

Stops working on all controllers except initial view controller #43

Open Hsanka6 opened 7 years ago

Hsanka6 commented 7 years ago

I have this code on my initial view controller and then on my second view controller but it only works on the first view controller. let halo = PulsingHaloLayer() halo.position = view.center view.layer.addSublayer(halo) halo.backgroundColor = UIColor.blue.cgColor halo.animationDuration = 3 halo.repeatCount = 3 halo.start()

mkdk commented 7 years ago

actually, it works only with initial view :(