Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.79 KB

README.md

File metadata and controls

58 lines (40 loc) · 1.79 KB

SimpleTransition

CI Status Version License Platform

Demo

Demo(https://www.youtube.com/watch?v=bUai3MLJcNA)

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 8.0+

Installation

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

pod "SimpleTransition"

via Carthage

github "MingLoan/SimpleTransition"

Usage

// init SimpleTransitionDelegate with presenting and presented view controller
let simpleTransitionDelegate = SimpleTransition(presentingViewController: self, presentedViewController: presentedViewCtl)

// setup delegate with options
simpleTransitionDelegate.setup(
            animation,
            alignment: alignment,
            motion: motion,
            presentingViewSize: presentingViewSize)
            
// assign simpleTransitionDelegate to presented view controller
presentedViewCtl.simpleTransitionDelegate = simpleTransitionDelegate

// call UIKit present method       
present(presentedViewCtl, animated: true, completion: nil)
        

Author

Mingloan, [email protected]

License

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