Latest 1.0
Homepage https://github.com/PierrePerrin/PPBlurModalPresentation
License MIT
Platforms ios 10.0
Authors

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
}

}

Latest podspec

{
    "name": "PPBlurModalPresentation",
    "version": "1.0",
    "summary": "Blur disolve effect in presenting viewControllers.",
    "description": "PPBlurModalPresentation allows you to make presentation blur transition using UIVisual effect and UIViewPropertyAnimator. Please see the exmaple for more information.",
    "homepage": "https://github.com/PierrePerrin/PPBlurModalPresentation",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pierre Perrin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/PierrePerrin/PPBlurModalPresentation.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "PPBlurModalPresentationExample/BlurModalPresentation.swift",
    "pushed_with_swift_version": "3.0.1"
}

Pin It on Pinterest

Share This