Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MarioIannotta/MIBlurPopup
MIBlurPopup lets you create popups with a blurred background
https://github.com/MarioIannotta/MIBlurPopup
alert blur blurview custom-segue popup swift
Last synced: about 1 month ago
JSON representation
MIBlurPopup lets you create popups with a blurred background
- Host: GitHub
- URL: https://github.com/MarioIannotta/MIBlurPopup
- Owner: MarioIannotta
- License: mit
- Created: 2017-01-14T17:03:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-30T19:11:50.000Z (almost 5 years ago)
- Last Synced: 2024-12-06T03:10:45.215Z (about 1 month ago)
- Topics: alert, blur, blurview, custom-segue, popup, swift
- Language: Swift
- Homepage:
- Size: 1.98 MB
- Stars: 605
- Watchers: 15
- Forks: 52
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - MIBlurPopup - MIBlurPopup let you create amazing popups with a blurred background. (UI / Popup)
- awesome-ios-star - MIBlurPopup - MIBlurPopup let you create amazing popups with a blurred background. (UI / Popup)
README
# MIBlurPopup
MIBlurPopup lets you create amazing popups with a blurred background[![Platform](http://img.shields.io/badge/platform-ios-red.svg?style=flat
)](https://developer.apple.com/iphone/index.action)
[![Swift 4](https://img.shields.io/badge/Swift-4-orange.svg?style=flat)](https://developer.apple.com/swift/)
[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/MIBlurPopup.svg)](https://img.shields.io/cocoapods/v/MIBlurPopup.svg)# Setup
1. Add ```pod 'MIBlurPopup'``` to your Podfile or copy the "MIBlurPopup.swift" into your project
2. Make sure the view controller you want to present conforms the protocol ```MIBlurPopupDelegate```
3. Present the view controller with: ```MIBlurPopup.show(popupViewController, on: )``` or just set ```MIBlurPopupSegue``` as your custom segue's class like that
**NB:** If you have added MIBlurPopup through pod, you also have to set the Module as "MIBlurPopup".# Customization
You 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```# TODO
* [x] Add a todo list
* [x] Add storyboard support (eg: with custom segue)# Demo
In this repository you can also find a demo.# Info
If you like this git you can follow me here or on twitter :) [@MarioIannotta](http://www.twitter.com/marioiannotta)Cheers from Italy!