To run the example project, clone the repo, and run pod install
from the Example directory first.
RYAngelWalker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'RYAngelWalker'
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.addSubview(walkerLab)
}
lazy var walkerLab: TrotingLabel = {
let lab = TrotingLabel(frame: CGRect(x: 10, y: 100, width: 111, height: 40))
lab.backgroundColor = .green
lab.font = .systemFont(ofSize: 18)
lab.textColor = .black
lab.pause = 2
lab.add("数据结构非常非常恶心,恶心到一定境界了")
return lab
}()
}
RisingSSR, 2769119954@qq.com
RYAngelWalker is available under the MIT license. See the LICENSE file for more info.