Latest 0.1.1
Homepage https://github.com/mnat44/RippleAnimation
License MIT
Platforms ios 8.0, requires ARC
Authors

Google Material Design Ripple Effects for Swift project. This project is inspired from Android Material Design Ripple Effects.

Carthage compatible

Features

RippleAnimation

  • Easy way to use Ripple Effects.
  • Call rippleAnimate to your UIView instances.
  • rippleAnimate is UIView extension.

Usage

First, you should import RippleAnimation module.

import RippleAnimation

And now, you can call rippleAnimate.

@IBAction func pressed(sender: UIButton) {
    sender.rippleAnimate(color: UIColor.redColor()) { print("ripple!!") }
}

You can use rippleAnimate with more detail parameters just like below.

self.contentView.rippleAnimate(color: rippleColor, scale: 10, startRect: startRect, scaleAnimateDuration: 1.0, fadeAnimateDuration: 0.5) { () -> Void in
    print("ripple!!")
}

More details is written in Demo project.

Runtime Requirements

  • iOS8.4 or later
  • Xcode 7.0 – Swift2.0

Installation

CocoaPods

To install RippleAnimation with CocoaPods, add the following lines in your Podfile and run pod install.

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.0'
use_frameworks!
pod ‘RippleAnimation’, ‘0.1.1’

Carthage

To Install RippleAnimation with Carthage, write github "mnat44/RippleAnimation" in your Cartfile and run carthage update.

License

RippleAnimation is released under the MIT license. Go read the LICENSE file for more information.

Latest podspec

{
    "name": "RippleAnimation",
    "version": "0.1.1",
    "summary": "Inspired from Material Design Ripple Effects for iOS",
    "description": "- Easy way to use Ripple Effects is call `rippleAnimate` method for your UIView instances.n- `rippleAnimate` is UIView extension.",
    "homepage": "https://github.com/mnat44/RippleAnimation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Motoki Narita": "[email protected]"
    },
    "social_media_url": "http://twitter.com/mo_to_44",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/mnat44/RippleAnimation.git",
        "tag": "0.0.2"
    },
    "source_files": "RippleAnimation/**/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This