Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cristi-lupu/CLWaterWaveView
- Owner: cristi-lupu
- License: mit
- Created: 2018-02-04T11:32:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T20:29:14.000Z (over 4 years ago)
- Last Synced: 2024-10-31T15:47:48.751Z (about 2 months ago)
- Topics: interface-builder, ios, swift, ui, uicomponent, uiview, view, water, waterwave, wave
- Language: Swift
- Size: 17.1 MB
- Stars: 56
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cocoa - CLWaterWaveView
README
CLWaterWaveView
## 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 CLWaterWaveViewlet waveView = CLWaterWaveView()
// configure the wave
waveView.amplitude = 39.0
waveView.speed = 0.009
waveView.angularVelocity = 0.37
waveView.depth = 0.37waveView.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.