CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

SimpleTransition 2.2.0

SimpleTransition 2.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by mingloan.



  • By
  • Mingloan

SimpleTransition

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"

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.