Latest0.2.0
Homepagehttps://github.com/rjeprasad/RappleUIAnimator
LicenseMIT
Platformsios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Rajeev Prasad/RappleUIAnimator.svg?style=flat)](https://travis-ci.org/Rajeev Prasad/RappleUIAnimator)
Version
License
Platform

Simple and easy to use animator library for UIView and UIViewController based animations

Requirements

Deploymen target – iOS 8.0 or higher

Installation

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

pod "RappleUIAnimator"

Author

Rajeev Prasad, [email protected]

License

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

Usage

Demo

demo

Objc ->

    #import <RappleUIAnimator/RappleUIAnimator.h> 

Swift ->

    import RappleUIAnimator
Rapple Modal presentation animator

first add a globle var to keep RappleTransitionDelegate

    var transitionDelegate : RappleTransitionDelegate?

then create your viewcontroller and set transitioningDelegate before present

        if let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("ModalViewController") as? ModalViewController {
            transitionDelegate = RappleTransitionDelegate(viewController: vc, direction: RappleDirectionLeftToRight);
            vc.transitioningDelegate = transitionDelegate
            self.presentViewController(vc, animated: true, completion: nil)
        }
Rapple alert view

Open alert view with a message and button titles and completion handles

        let alert = RappleAlertView(message: "Rapple alert view is awsome!!!", cancel: "Cancel", ok: "OK");
        alert.setAttributes([RappleAlertButtonTextColor : UIColor.whiteColor(), RappleAlertButtonPanelColor : RappleColor.rappleBlue()])
        alert.show { (button) -> Void in
            if button.value ==  RappleAlertCancelButton.value {
                println("Cancel Tapped") ;
            } else if button.value == RappleAlertOKButton.value {
                println("OK Tapped")
            }
        }
Rapple Popover view

first add a globle var to keep RapplePOPView

    var pop : RapplePOPView? 

then create your viewcontroller and set and open with RapplePOPView

        if let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("RapplePOPViewController") as? RapplePOPViewController {
            vc.popDelegate = self
            pop = RapplePOPView(customViewController: vc, size: CGSizeMake(300, 400))
            pop!.delegate = self
            pop!.setBorderColor(UIColor.lightGrayColor(), borderWidth: 2)
            pop!.show()
        }
Rapple Acitvity Indicator (Progress Indicator)

Call for full screen activity indicator

        RappleActivityIndicatorView.startAnimating();

or

        RappleActivityIndicatorView.startAnimatingWithLabel("Loading");

to close

        RappleActivityIndicatorView.stopAnimating()

Latest podspec

{
    "name": "RappleUIAnimator",
    "version": "0.2.0",
    "summary": "Simple & easy to use UIView animation library",
    "description": "Simple & easy to use UIView animation library RappleModalTransition, RappleAlertView, RapplePOPView, Rapple Activity Indicator",
    "homepage": "https://github.com/rjeprasad/RappleUIAnimator",
    "license": "MIT",
    "authors": {
        "Rajeev Prasad": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rjeprasad/RappleUIAnimator.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*"
}

Pin It on Pinterest

Share This