MIBlurPopup lets you create popups with a blurred background
MIBlurPopup lets you create amazing popups with a blurred background
pod 'MIBlurPopup'
to your Podfile or copy the “MIBlurPopup.swift” into your projectMIBlurPopupDelegate
MIBlurPopup.show(popupViewController, on: <some view controller>)
or just set MIBlurPopupSegue
as your custom segue’s class like thatYou can customize the popup behavior with the MIBlurPopupDelegate protocol
popupView: UIView // the view that contains the popup
blurEffectStyle: UIBlurEffectStyle // the blur effect style you want to apply to the background
initialScaleAmmount: CGFloat // ∈(0, 1), this property will be used to calculate size that the popupView will have at the begin of the presentation and at the end of the dismiss. When != 1 it will induce a zoom-effect.
animationDuration: TimeInterval // the transitions animations duration
In this repository you can also find a demo.
If you like this git you can follow me here or on twitter 😃 @MarioIannotta
Cheers from Italy!