Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cristi-lupu/CLWaterWaveView

A UIView what able to show water wave effect
https://github.com/cristi-lupu/CLWaterWaveView

interface-builder ios swift ui uicomponent uiview view water waterwave wave

Last synced: about 1 month ago
JSON representation

A UIView what able to show water wave effect

Awesome Lists containing this project

README

        

CLWaterWaveView


Pod Icon



Swift

Platform: iOS
Version
Licence

## Features

![Intro Gif](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](demo.gif)

## Usage

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

![Alt Text](attributes_inspector.png)

#### Code

```swift
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](http://cocoapods.org)**. To install
it, simply add the following line to your Podfile:

```ruby
pod 'CLWaterWaveView'
```

## Author

**Cristian Lupu, [email protected]**

## License

**CLWaterWaveView** is available under the **MIT license**. See the **[LICENSE](https://github.com/cristiLupu/CLWaterWaveView/blob/master/LICENSE)** file for more info.