YXWaveView 中文说明
A water wave animation view with a over view float.
Podfile
add this:
platform :ios, '8.0'
pod 'YXWaveView'
Run pod install
github "yourtion/YXWaveView"
// Init
let frame = CGRect(x: 0, y: 0, width: self.view.bounds.size.width, height: 200)
let waterView = YXWaveView(frame: frame, color: UIColor.white)
// Add OverView
waterView.addOverView(overView)
// Start
waterView.start()
// Stop
waterView.stop()
// real wave color
waterView.realWaveColor = UIColor.blue
// mask wave color
waterView.maskWaveColor = UIColor.black
// wave speed (default: 0.6)
waterView.waveSpeed = 0.5
// wave height (default: 5)
waterView.waveHeight = 6
// wave curvature (default: 1.5)
waterView.waveCurvature = 1.2
Lookup Demo so see detail.