NavigationControllerBlurTransition
NavigationControllerBlurTransition copied to clipboard
[DEPRECATED] A UINavigationController transition that utilizes a blur view for a simple interface.
[DEPRECATED] NavigationControllerBlurTransition
⚠️ 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, [email protected]
License
NavigationControllerBlurTransition is available under the MIT license. See the LICENSE file for more info.