I would like to have some kind of pulse animation (infinite loop "scale in - scale out") on a UIButton so it gets users' attention immediately.
I saw this link How to create a pulse effect using -webkit-animation - outward rings but I was wondering if there was any way to do this only using native framework?
Any help much appreciated - code sample even better ;-)
Here is the swift code for it ;)
The swift code is missing a
fromValue
, I had to add it in order to get it working.Also
forKey
should be set, otherwiseremoveAnimation
doesn't work.Swift
See this article