DSFloatingButton
安装
CocoaPods
pod 'DSFloatingButton'
Carthage
github "trueSuperior/DSFloatingButton"
手动
将 DSFloatingButotn.swift 添加到您的项目中。
使用方法
界面构建
只需添加一个UIButton,然后在Identity Inspector中将类和模块更改为DSFloatingButton。
代码配置
// Easy to create programmatically.
let button = DSFloatingButton(frame: CGRect(x: 0, y: 0, width: 100, height: 40))
button.backgroundColor = #colorLiteral(red: 1, green: 0.645, blue: 0, alpha: 1)
button.setTitle("Button", for: [])
stackView.addArrangedSubview(button)
// If you want to know more detail see example.
作者
UMA, [email protected]
许可
DSFloatingButton可在MIT许可下使用。有关更多信息,请参阅LICENSE文件。