GithubHelp home page GithubHelp logo

magic-coder / miblurpopup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marioiannotta/miblurpopup

0.0 2.0 0.0 2.01 MB

MIBlurPopup lets you create amazing popups with a blurred background

License: MIT License

Ruby 4.73% Swift 95.27%

miblurpopup's Introduction

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!

miblurpopup's People

Contributors

marioiannotta avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.