PPBlurModalPresentation allows you to make presentation blur transition using UIVisual effect
Swift Ruby
Switch branches/tags
Nothing to show
Latest commit 1e960f2 Mar 20, 2017 @PierrePerrin Readme fix
Permalink
Failed to load latest commit information.
Blur Radius.playground
PPBlurModalPresentation.xcodeproj
PPBlurModalPresentationExample
.swift-version
LICENSE
PPBlurModalPresentation.podspec
README.md
bird.jpg
bird2.jpg
demo.gif

README.md

PPBlurModalPresentation

Synopsis

PPBlurModalPresentation allows you to make presentation blur transition using UIVisual effect and UIViewPropertyAnimator.

alt tag

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate PPBlurModalPresentation into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
pod 'PPBlurModalPresentation'
end

Manually

If you prefer you can clone the project, and get the BlurModalPresentation.swift file.

Code Example

import PPBlurModalPresentation
class ViewController: UIViewController,UIViewControllerTransitioningDelegate {

let blurModalPresentation = BlurModalPresentation()

override func viewDidLoad() {
super.viewDidLoad()

}

override func prepare(for segue: UIStoryboardSegue, sender: Any?) {

segue.destination.transitioningDelegate = self

}

override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
}

func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning?{

return blurModalPresentation
}


func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning?{

return blurModalPresentation
}

}