RYAngelWalker
示例
要运行示例项目,首先从仓库克隆,然后在 Example 目录中运行 pod install
要求
安装
RYAngelWalker 通过 CocoaPods 提供使用。要安装它,只需将以下行添加到您的 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, [email protected]
许可协议
RYAngelWalker 在 MIT 许可协议下提供。有关更多信息,请参阅 LICENSE 文件。