NavigationControllerBlurTransition is a simple blur transition for your UINavigationController. With only one line of code, create a visually appealing interface for your app!
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
Add the following to your podfile:
pod "NavigationControllerBlurTransition"
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.
Christopher Jones, c.jones@prolificinteractive.com
NavigationControllerBlurTransition is available under the MIT license. See the LICENSE file for more info.