Skip to content

prolificinteractive/NavigationControllerBlurTransition

Repository files navigation

[DEPRECATED] NavigationControllerBlurTransition

Version License Platform

alt tag

⚠️ This repository is no longer maintained or supported. New pull requests will not be reviewed. ⚠️

NavigationControllerBlurTransition is a simple blur transition for your UINavigationController. With only one line of code, create a visually appealing interface for your app!

Requirements

NavigationControllerBlurTransition utilizes UIVisualEffectView to provide its blur effect as well as dynamic frameworks (since the library is written in Swift); as such, it requires:

  • iOS8+
  • Xcode 7.0

Installation

Add the following to your podfile:

pod "NavigationControllerBlurTransition"

Usage

To use this transition, simply set your root view controller as the delegate for your UINavigationController, and implement the following UINavigationControllerDelegate delegate method as such:

func navigationController(navigationController: UINavigationController,
    animationControllerForOperation operation: UINavigationControllerOperation,
    fromViewController fromVC: UIViewController,
    toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning?
{
    return self.navigationController?.blurAnimationControllerForOperation(operation)
}

That's it! Now your view controller will push / pop its view controllers over a blurred representation of the initial view controller.

Author

Christopher Jones, c.jones@prolificinteractive.com

License

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

About

[DEPRECATED] A UINavigationController transition that utilizes a blur view for a simple interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published