Latest 1.0.4
License MIT
Platforms ios 8.0, requires ARC

Swift 2.0

Interactive only can be done with UINavigationController? No! WYInteractiveTransitions come to rescue, bringing interactive transition to model presentation between view controllers.

Customized transitions between view controllers for iOS. One Line of code with fully interactive animations. Written purely in Swift.

Four animations is embedded right now:

  • Push

  • SlideUp

  • Swing

  • Zoom

  • And your customized animations


WYInteractiveTransitions is available through CocoaPods.

To install it, simply add the following line to your Podfile:

pod "WYInteractiveTransitions"

Or download the git repository

 git clone

Drag WYInteractiveTransitions.swift file into your own project

Then import the module in your file

import WYInteractiveTransitions

If you’re Objective-C user, please include the header file

#import "WYInteractiveTransitions-Swift.h"


1) Create instance

let transitionMgr = WYInteractiveTransitions()

2) Configure WYInteractiveTransitions in proper position

transitionMgr.configureTransition(duration: 0.5, toView: toView!, panEnable: true, type: WYTransitoinType.Up)

3) Present view controller or dismiss would invoke the transitions

  • performSegueWithIdentifier
  • presentViewController
  • dismissViewController
  • unwindViewController
  • etc…

Example Codes

let transitionMgr = WYInteractiveTransitions()
 override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
 if segue.identifier == "showSegue" {
   let toView = segue.destinationViewController as? UIViewController
     transitionMgr.configureTransition(duration: 0.5, toView: toView!, panEnable: true, type: WYTransitoinType.Up)


1) Download the repository

 git clone
 cd WYInteractiveTransitions/Example

2) Open the workspace

 open WYInteractiveTransitions.xcodeproj

3) Compile and run the app in simulator

  • Under Xcode, press Ctrl + R


  • Xcode 6
  • iOS 7


WYInteractiveTransitions is available under the MIT License, see LICENSE for more infomation.

Latest podspec

    "name": "WYInteractiveTransitions",
    "version": "1.0.4",
    "summary": "WYInteractiveTransitions provides custimzed interactive transitions between view controllers in one line of code.",
    "description": "WYInteractiveTransitions are called when view controller transitions take place.n* PresentViewControllesn* DismissViewControllern* PerformSegueWithIdentifier & PrepareForSeguen* etc...",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Yu Wang": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.4"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "WYInteractiveTransitions": [

Pin It on Pinterest

Share This