(https://www.youtube.com/watch?v=bUai3MLJcNA)
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS 8.0+
SimpleTransition is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SimpleTransition"
via Carthage
github "MingLoan/SimpleTransition"
// 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)
Mingloan, [email protected]
SimpleTransition is available under the MIT license. See the LICENSE file for more info.