测试已测试 | ✗ |
Lang语言 | SwiftSwift |
许可协议 | Apache 2 |
发布最后发布 | 2016年11月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
由 AnanthaKrish 维护。
KGRippleAnimation
是按钮点击的水波动画。
首先,导入 KGRippleAnimation
。
import KGRippleAnimation
let button = KGRippleButton(frame: CGRect(x: 100, y: 90, width: 200, height: 100))
self.view.addSubview(button)
您可以给按钮添加属性。
let button = KGRippleButton(frame: CGRect(x: 100, y: 90, width: 200, height: 100))
button.addTarget(self, action: #selector(yourAction), for: .touchUpInside)
button.setTitle("Here you Go", for: .normal);
button.backgroundColor = UIColor.yellow;
button.setTitleColor(UIColor.blue, for: .normal)
self.view.addSubview(button)
版权所有 2016 Ananth。
在 Apache License, Version 2.0 许可协议下发行(“许可”);除非遵守许可协议,否则不得使用此文件。可以在以下位置获得许可证副本:
https://apache.ac.cn/licenses/LICENSE-2.0
除非适用法律要求或书面同意,否则在许可证下分发的软件按其“现状”发行,不提供任何明示或暗示的保证或条件。有关许可协议中规制的权限和限制的具体语言,请参阅许可证。