测试测试过 | ✗ |
Lang语言 | SwiftSwift |
许可证 | MIT |
Released最后发布 | 2017年6月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由cbangchen维护。
WJClipsButton 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "WJClipsButton"
import WJClipsButton
let wjButton = WJClipsButton.init(frame: CGRect.init(x: 0, y: 0, width: 300, height: 50))
wjButton.center = self.view.center
wjButton.cornerRadius = 10
wjButton.setButtonColor(.blue, status: .normal)
wjButton.setButtonColor(.yellow, status: .highlighted)
wjButton.setButtonColor(.red, status: .selected)
wjButton.setButtonTitle("I gonna start ... en ?", for: .normal)
wjButton.setButtonTitle("Touching ... friction.", for: .highlighted)
wjButton.setButtonTitle("Locked, locked.", for: .selected)
self.view.addSubview(wjButton)
图片为证
@IBInspectable 支持的
// button tap action
func didTapClipsButton()
// button unlock action
func clipsButtonDidUnlock()
// button lock action
func clipsButtonDidLock()
jingzhilehuakai, [email protected]
WJClipsButton 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。