Skip to content

UIView+Ripple+Wave is a lightweight framework that adds a waving effect to any UIView and written in Swift.

License

Notifications You must be signed in to change notification settings

vigneshuvi/UIRippleWave

Repository files navigation

Language Swift 3 Objective-C compatible

UIRippleWave

UIView+Ripple+Wave is a lightweight framework that adds a waving effect to any UIView and written in Swift.

Screenshots

alt text

iOS import headers

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

Example

UIRippleWave can be used without any wrappers nor layout and touch handling, simply call the start wave function.

Example 1 - Objective-C

// Start waving.
    [self.uviView setEnableWaveEffect:YES];
    [self.uviButton startWaving];
    [self.uviImageView startWavingWithColorWithColor:[UIColor redColor] repeatCount:1];
    [self.uviImageView startWavingWithRepeatCountWithRepeatCount:1];

Example 2 - Swift

// Start waving.
self.uviView.startWaving();
self.uviButton.startWavingWithColor(color: UIColor.green, repeatCount: 1);
self.uviImageView.startWavingWithRepeatCount(repeatCount: Float.infinity);

Sample Projects

Sample Projects available under the /Examples folder.

Installation

CocoaPods

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

License

UIRippleWave is licensed under the MIT License.

Contact

Vignesh Kumar

About

UIView+Ripple+Wave is a lightweight framework that adds a waving effect to any UIView and written in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published