UIView+Ripple+Wave is a lightweight framework that adds a waving effect to any UIView and written in Swift.
First thing is to import the framework. See the Installation instructions on how to add the framework to your project.
//iOS - Objective-C
@import UIRippleWave;
//iOS - Swift
import UIRippleWave
UIRippleWave can be used without any wrappers nor layout and touch handling, simply call the start wave function.
// Start waving.
[self.uviView setEnableWaveEffect:YES];
[self.uviButton startWaving];
[self.uviImageView startWavingWithColorWithColor:[UIColor redColor] repeatCount:1];
[self.uviImageView startWavingWithRepeatCountWithRepeatCount:1];
// Start waving.
self.uviView.startWaving();
self.uviButton.startWavingWithColor(color: UIColor.green, repeatCount: 1);
self.uviImageView.startWavingWithRepeatCount(repeatCount: Float.infinity);
Sample Projects available under the /Examples folder.
Check out Get Started tab on cocoapods.org.
To use UIRippleWave in your project add the following 'Podfile' to your project
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'UIRippleWave'
Then run:
pod install || pod update
UIRippleWave is licensed under the MIT License.