Skip to content

Not updated to Swift 2.2 and 3 #2

@talezion

Description

@talezion

There are a couple of errors/warnings.

For Swift 2.2 and 3

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()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions