GithubHelp home page GithubHelp logo

vigneshuvi / uiripplewave Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 439 KB

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

License: MIT License

Swift 42.29% Objective-C 4.30% Ruby 53.41%
rippleview ripple-wave uiview-extension uiview-ripple uiview-ripple-wave

uiripplewave's Introduction

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

uiripplewave's People

Contributors

vigneshuvi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.