PPBlurModalPresentation allows you to make presentation blur transition using UIVisual effect
Swift Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Blur Radius.playground
PPBlurModalPresentation.xcodeproj Swift version corrected Mar 20, 2017
PPBlurModalPresentationExample
.swift-version
LICENSE
PPBlurModalPresentation.podspec Readme fix Mar 20, 2017
README.md Readme fix Mar 20, 2017
bird.jpg Initial Commit Mar 20, 2017
bird2.jpg
demo.gif Demo gif added Mar 20, 2017

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
}

}