I have a UILabel with background color as grey.
I want a blinking effect on this label like it should become a little white & then become gray and it should keep
Got stuck when trying with swift and using multiple options but this seems to work nicely:
self.cursorLabel.alpha = 1 UIView.animate(withDuration: 0.7, delay: 0.0, options: [.repeat, .autoreverse, .curveEaseInOut], animations: { self.cursorLabel.alpha = 0 }, completion: nil)