MIBlurPopup

MIBlurPopup lets you create popups with a blurred background

Github星跟踪图

MIBlurPopup

MIBlurPopup lets you create amazing popups with a blurred background

Platform
Swift 4
Cocoapods Compatible

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: <some view controller>) 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

  • Add a todo list
  • 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

Cheers from Italy!

主要指标

概览
名称与所有者MarioIannotta/MIBlurPopup
主编程语言Swift
编程语言Swift (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2017-01-14 17:03:33
推送于2020-03-30 19:11:50
最后一次提交2020-03-30 21:10:43
发布数6
最新版本名称1.0.0 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数605
关注者数14
派生数52
提交数30
已启用问题?
问题数17
打开的问题数2
拉请求数1
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?