Giter VIP home page Giter VIP logo

shpopup's Introduction

SHPopup

SHPop is lightweight library used for popup view

Version License Platform

Sample One

Sample Two

Sample Three

Features

SHPopup supports a popup inside another popup without dismissing

SHPopup is customizable

Installation

Just drag and drop the SHPopup.swift file from SHPopup folder to your project.

Usage

Main viewcontroller must be embed in a navigation controller

Set Popup View

Set a viewcontroller as popup view using setPopup function

    let PopupVC = setPopupVC(storyboradID:"Main",viewControllerID:"restorationIdentifier")

you should set Storyboard name and viewcontroller id in setPopup function

Present Popup View

    self.presentPopup(controller: popupVC, completion: nil)

Dismiss Popup View

    self.dismissPopup(completion: nil)

Customization

  1. Popup View alignment options .top .center .bottom .custom - you can specify the x and y point of popup view
    popupVC?.popupAlign = .top

custom alignment option

    popupVC?.popupCustomAlign = CGPoint(x: 100, y: 100)
  1. Popup View animation options .normal .top .bottom .bottomBounce .topBounce
    popupVC?.popupAnimation = .bottom
  1. Poup View touch dismiss
    popupVC?.touchDismiss = true

By default it is true

  1. Popup View Size - you can specify the width and height of popup view
    popupVC?.popupSize = CGSize(width: 250, height: 250)
  1. Popup View overlay Color - you can specify any color as overlay
    popupVC?.overlayColor = UIColor.black
  1. Popup View Corner Radius
    popupVC?.popupCorner = 5

For more you can download the sample project.

Requirements

  • iOS 9.0+

Example

Download the Sample project.

Contact

Shezad Ahamed

Follow and contact me on:

If you like my content, please consider buying me a coffee. Thank you for your support!

Buy Me A Coffee

Acknowledge

Inspired by STZPopupView

License

SHPopup is available under the MIT license. See the LICENSE file for more info.

shpopup's People

Contributors

iamshezad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shpopup's Issues

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.