Skip to content

A simple way to do custom transition including dissolve presentation and translate presentation.

License

Notifications You must be signed in to change notification settings

keithcml/SimpleTransition

Repository files navigation

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.

About

A simple way to do custom transition including dissolve presentation and translate presentation.

Resources

License

Stars

Watchers

Forks

Packages

No packages published