UIView-Ripple 1.0.4

UIView-Ripple 1.0.4

janlionly维护。



UIView-Ripple

Version License Platform Swift

UIView-Ripple demo image

描述

UIView-Ripple 是一种类似于水波纹理的动画效果,它扩展了 UIView,只需要一行代码(addRippleAnimation)就可以添加水波动画效果。

安装

CocoaPods

pod 'UIView-Ripple'

用法

let testView = UIView(frame: CGRect(x: 100, y: 100, width: 80, height: 80)
testView.layer.cornerRadius = view.frame.size.width/2.0
testView.addRippleAnimation(color: .systemPink, duration: 1.5, repeatCount:1, rippleCount: 3, rippleDistance: nil)

要求

  • iOS 9.0+
  • Swift 4.2 到 5.1

作者

访问我的github: janlionly
通过电子邮件联系我: [邮件 保护中]

贡献

我希望你们能贡献给 UIView-Ripple

许可证

UIView-Ripple 按照MIT许可证提供。更多信息请参阅LICENSE文件。