There are a couple of errors/warnings.
public class BlinkingLabel : UILabel {
public func startBlinking() {
let options : UIViewAnimationOptions = [.Repeat,.Autoreverse]
UIView.animateWithDuration(0.25, delay:0.0, options:options, animations: {
self.alpha = 0
}, completion: nil)
}
public func stopBlinking() {
alpha = 1
layer.removeAllAnimations()
}
}
There are a couple of errors/warnings.
For Swift 2.2 and 3