Latest 0.4.0
Homepage https://github.com/yourtion/YXWaveView
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation
Authors

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.

Latest podspec

{
    "name": "YXWaveView",
    "version": "0.4.0",
    "summary": "A water wave animation view",
    "description": "A water wave animation view with a over view float",
    "homepage": "https://github.com/yourtion/YXWaveView",
    "license": "MIT",
    "authors": {
        "Yourtion": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yourtion/YXWaveView.git",
        "tag": "0.4.0"
    },
    "screenshots": "https://raw.githubusercontent.com/yourtion/YXWaveView/master/ScreenShot.gif",
    "source_files": "YXWaveView",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": "Foundation",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This