TSwitchLabel - 一个简单灵活的 UI 组件,完全用 Swift 编写

商标

巫师标签

TSwitchLabel 是一个简单灵活的 UI 组件,完全用 Swift 编写。当您需要以最快的方式使用标签和开关设计UI时,无需花时间从头开始开发,即可轻松使用。

斯威夫特 5.0 版本 许可证 平台 电子邮件

若要运行示例项目,请克隆存储库,然后首先从示例目录运行。pod install

要求

安装

TSwitchLabel可通过CocoaPods获得。要安装 它,只需将以下行添加到您的 Podfile 中:

pod 'TSwitchLabel'

用法

import TSwitchLabel
  1. 启动TSwitchLabel
let switchLabel = TSwitchLabel()
  1. 要显示标题,请输入属性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.

GitHub

点击跳转