cristi-lupu / CLWaterWaveView

A UIView what able to show water wave effect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLWaterWaveView

Pod Icon

Swift Platform: iOS Version Licence

Features

Intro Gif

  • Simple configuration
  • Live editing

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo Gif

Usage

Interface Builder

In Interface Builder, select wave view, and in attributes inspector set values:

Alt Text

Code

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

Installation

CLWaterWaveView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CLWaterWaveView'

Author

Cristian Lupu, lupucristiancptc@gmail.com

License

CLWaterWaveView is available under the MIT license. See the LICENSE file for more info.

About

A UIView what able to show water wave effect

License:MIT License


Languages

Language:Swift 95.8%Language:Ruby 4.2%