TSwitchLabel - 一个简单灵活的 UI 组件,完全用 Swift 编写
巫师标签
TSwitchLabel 是一个简单灵活的 UI 组件,完全用 Swift 编写。当您需要以最快的方式使用标签和开关设计UI时,无需花时间从头开始开发,即可轻松使用。
例
若要运行示例项目,请克隆存储库,然后首先从示例目录运行。pod install
要求
安装
TSwitchLabel可通过CocoaPods获得。要安装 它,只需将以下行添加到您的 Podfile 中:
pod 'TSwitchLabel'
用法
import TSwitchLabel
- 启动
TSwitchLabel
let switchLabel = TSwitchLabel()
- 要显示标题,请输入属性
title
switchLabel.titleLabel.text = "TSwitch Label"
要求
- iOS 10.0 或更高版本
- Swift 5.0 或更高版本
Author
fanta1ty, thinhnguyen12389@gmail.com
License
TSwitchLabel is available under the MIT license. See the LICENSE file for more info.