Latest 1.1.0
Homepage https://github.com/gliyao/TransitionViewController
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Build Status
Version
License
Platform
codecov

Use blur transiton effect in 2 steps.

First, subclass your dialog view controller.
Second, chose tranistion style you want.

TransitionViewController

Support Xib

You can easily subclass TransitionViewController to achieve blur background effect.

Background Effet

There have 2 kind of background effect. Blur and black with alpha.

TransitionViewController
TransitionViewController

enum TransitionStyle {
    case black(CGFloat)
    case blur(UIBlurEffectStyle)
}

Present and Dismiss Direction

Support 4 direction (top, bottom, left, right)

enum TransitionPosition {
    case top, bottom, left, right
}

How To Use

// 1. Subclass for your dialog view controller
class YourPopupViewController: TransitionViewController {
    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
        super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil)

        // 2. Change transition here!!
        self.transition = TransitionAnimator(style: .blur(.light), presentFrom: .bottom, dismissTo: .bottom)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

Requirements

  • iOS 8.0 or later

Installation

TransitionViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'TransitionViewController'

Author

Liyao Chen, [email protected]

License

TransitionViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TransitionViewController",
    "version": "1.1.0",
    "summary": "Customize blur transiton effect with Xib.",
    "description": "Use blur transiton effect in 2 steps. 1. Subclass your dialog view controller. 2. Chose tranistion style you want.",
    "homepage": "https://github.com/gliyao/TransitionViewController",
    "screenshots": [
        "https://github.com/gliyao/TransitionViewController/blob/master/Resources/darkBlurPopupView.png?raw=true",
        "https://github.com/gliyao/TransitionViewController/blob/master/Resources/balck05PopupView.png?raw=true"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Liyao Chen": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gliyao/TransitionViewController.git",
        "tag": "1.1.0"
    },
    "social_media_url": "https://twitter.com/gliyao",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "TransitionViewController/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This