Latest 1.0.2
Homepage https://github.com/rimh/RippleTransition
License MIT
Platforms ios 8.0
Authors

A simple transition with native ripple effect which is a combination between ripple and fade-out effect.

Requirement

Xcode 9, Swift 4, iOS 8 or above

Demo

ripple

Installation

RippleTransition is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'RippleTransition'

Usage

First, you need to import the module.

import RippleTransition
class ViewController: UIViewController, UIViewControllerTransitioningDelegate {

    let transition = RippleTransition()

    func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        return self.transition
    }

    func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
        return self.transition
    }
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        let controller = segue.destination
        controller.transitioningDelegate = self
    }
}

Custom animation duration by

transition.transitionTimeInterval = 1.0

License

RippleTransition is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RippleTransition",
    "version": "1.0.2",
    "summary": "A simple transition with native ripple effect.",
    "description": "A simple transition with native ripple effect. It is a combination between ripple and fade-out effect.",
    "authors": {
        "Rimh(Ming)": "[email protected]"
    },
    "homepage": "https://github.com/rimh/RippleTransition",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/rimh/RippleTransition.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RippleTransition/RippleTransition.swift",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This