KGRippleAnimation 1.0.2

KGRippleAnimation 1.0.2

测试已测试
Lang语言 SwiftSwift
许可协议 Apache 2
发布最后发布2016年11月
SwiftSwift 版本3.0
SPM支持 SPM

AnanthaKrish 维护。



  • Ananth

KGRippleAnimation

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

除非适用法律要求或书面同意,否则在许可证下分发的软件按其“现状”发行,不提供任何明示或暗示的保证或条件。有关许可协议中规制的权限和限制的具体语言,请参阅许可证。