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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?