A water wave animation view (类似百度外卖的头像波浪效果)
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
YXWaveView.xcodeproj update setting Dec 7, 2017
YXWaveView update for swift4 Dec 7, 2017
YXWaveViewDemo.xcodeproj update setting Dec 7, 2017
YXWaveViewDemo.xcworkspace Add Demo Aug 26, 2016
YXWaveViewDemo update setting Dec 7, 2017
.gitignore Add Demo Aug 26, 2016
LICENSE Initial commit Aug 26, 2016
README.md update README Sep 23, 2016
README_CN.md update README Sep 23, 2016
ScreenShot.gif update 0.2.0 Aug 26, 2016
YXWaveView.podspec 0.5.0 Dec 7, 2017

README.md

YXWaveView 中文说明

Carthage compatible Version License Platform

A water wave animation view with a over view float.

ScreenShot

ScreenShot

Installl

CocoaPod

Podfile add this:

platform :ios, '8.0'

pod 'YXWaveView'

Run pod install

Carthage

github "yourtion/YXWaveView"

How to use

// 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()

Settings

// 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.