Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/marioiannotta/miblurpopup

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/marioiannotta/miblurpopup

  • v0.0.0-20200330191139-e1dda94b8861
  • Source
  • Go
  • Socket score

Version published
Created
Source

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!

FAQs

Package last updated on 30 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc