DSFloatingButton 1.0.1

DSFloatingButton 1.0.1

UMA 维护。



DSFloatingButton

Carthage compatible CI Status Version License Platform

轻松创建扩散阴影效果的按钮。 demo

安装

CocoaPods

pod 'DSFloatingButton'

Carthage

github "trueSuperior/DSFloatingButton"

手动

将 DSFloatingButotn.swift 添加到您的项目中。

使用方法

界面构建

attr只需添加一个UIButton,然后在Identity Inspector中将类和模块更改为DSFloatingButton。

attr您可以在Interface Builder中更改外观。

代码配置

// 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文件。