Gradient glow UILabel and Lyric UILabel for iOS(Build with XCode8.0 beta and written in Swift 3.0)
UILabel for shimmer and lyric effect
Import LiveLabel.swift and LyricLabel.swift into you project first.
// LyricLabel Usage
lyricLabel.color = UIColor.blue()
let timer = Timer.scheduledTimer(timeInterval: 1.0/40.0, target: self, selector: #selector(update), userInfo: nil, repeats: true);
timer.fire()
// LiveLabel Usage
liveLabel.fromColor = UIColor.init(netHex: 0x00C9FF).cgColor // Here is an entension init method for UIColor from LiveLabel.swift
liveLabel.toColor = UIColor.init(netHex: 0x92FE9D).cgColor // Here is an entension init method for UIColor from LiveLabel.swift
liveLabel.setAnimationEnabled(true)
...
/**
Update lyric progress(Only one line support)
*/
func update(){
lyricLabel.progress += 1
if lyricLabel.progress > 100 {
lyricLabel.progress = 1
}
}
##requirement XCode 8.0
##Installation Download or clone this repo and import LiveLable.swift & LyricLable.swift and you are ready to go.
##TODO Objective-C implemention
##License MIT