Skip to content

NjrSea/FlickTransition

Repository files navigation

FlickTransition

A iOS UIViewController Transition

Screenshot

screenshot

Installation & Usage

Install via CocoaPods by adding this to your Podfile:

pod 'FlickTransition'

Then import to your swift file

import FlickTransition

For instance, present a view controller in a tableview controller:

var rect = tableView.rectForRowAtIndexPath(indexPath)
rect = tableView.convertRect(rect, toView: view)
FlickTransitionCoordinator.sharedCoordinator.presentViewController(WebViewController(), presentOriginFrame: rect)

Dismiss a view controller:

FlickTransitionCoordinator.sharedCoordinator.dismissViewControllerNoninteractively()

Note that view controller to be presented needs ot implement FlickTransitionDelegate to get interactive transition feature.

##Demo

Run the example projects, from the workspace to play with the library.