CLWaterWaveView
特点
- 简单配置
- 实时编辑
示例
要运行示例项目,请首先从仓库克隆,然后在 Example 目录中运行 pod install
使用方法
Interface Builder
在 Interface Builder 中选择波浪视图,然后在属性检查器中设置值
代码
import CLWaterWaveView
let waveView = CLWaterWaveView()
// configure the wave
waveView.amplitude = 39.0
waveView.speed = 0.009
waveView.angularVelocity = 0.37
waveView.depth = 0.37
waveView.startAnimation()
// to stop animation
waveView.stopAnimation()
安装
CLWaterWaveView 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中:
pod 'CLWaterWaveView'
作者
Cristian Lupu, [email protected]
许可协议
CLWaterWaveView 在 MIT 许可协议 下可用。有关更多信息,请参阅 LICENSE 文件。