All Projects → fritzgerald → PopItUp

fritzgerald / PopItUp

Licence: MIT license
a Popup system for iOS

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to PopItUp

Tippyjs
Tooltip, popover, dropdown, and menu library
Stars: ✭ 9,433 (+36180.77%)
Mutual labels:  popover, popup
Material Ui Popup State
boilerplate for common Material-UI Menu, Popover and Popper use cases
Stars: ✭ 186 (+615.38%)
Mutual labels:  popover, popup
Jxpopupview
一个轻量级的自定义视图弹出框架
Stars: ✭ 117 (+350%)
Mutual labels:  popover, popup
React Layer Stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 152 (+484.62%)
Mutual labels:  popover, popup
Ampoptip
An animated popover that pops out a given frame, great for subtle UI tips and onboarding.
Stars: ✭ 2,854 (+10876.92%)
Mutual labels:  popover, popup
SPStorkController
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,515 (+9573.08%)
Mutual labels:  popover, popup
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (+507.69%)
Mutual labels:  popover, popup
Ambar-Xamarin
A macOS Menu Bar app built with Xamarin and C#
Stars: ✭ 63 (+142.31%)
Mutual labels:  popover, popup
Spstorkcontroller
Now playing controller from Apple Music, Mail & Podcasts Apple's apps.
Stars: ✭ 2,494 (+9492.31%)
Mutual labels:  popover, popup
React Popup
React popup component
Stars: ✭ 198 (+661.54%)
Mutual labels:  popover, popup
Popover
Popover component for Angular
Stars: ✭ 187 (+619.23%)
Mutual labels:  popover, popup
Spalert
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
Stars: ✭ 1,014 (+3800%)
Mutual labels:  uikit, popup
Cardpresentationcontroller
Custom UIPresentationController which mimics the behavior of Apple Music UI
Stars: ✭ 778 (+2892.31%)
Mutual labels:  uikit, popup
Dropdownmenukit
UIKit drop down menu, simple yet flexible and written in Swift
Stars: ✭ 246 (+846.15%)
Mutual labels:  uikit, popup
vue-modal
Reusable Modal component, supports own custom HTML, text and classes.
Stars: ✭ 29 (+11.54%)
Mutual labels:  popup
AndroidUiKit
uikit widget common baseview Adapter faster develop
Stars: ✭ 48 (+84.62%)
Mutual labels:  uikit
LSDialogViewController
Custom Dialog for iOS written in Swift
Stars: ✭ 74 (+184.62%)
Mutual labels:  popup
react-native-popable
Popovers, tooltips for React Native
Stars: ✭ 298 (+1046.15%)
Mutual labels:  popover
KeyCommandAlertController
UIAlertController wrapper to add keyboard shortcuts easily
Stars: ✭ 16 (-38.46%)
Mutual labels:  uikit
notus-angular
Notus Angular: Free Tailwind CSS UI Kit and Admin
Stars: ✭ 148 (+469.23%)
Mutual labels:  uikit

PopItUp

Carthage compatible GitHub release Swift 4.0 License: MIT CocoaPods Compatible

PopItUp is a mini framework that add a new method to UIViewContollers to help you present controllers like popup and have the same visual effect has a system popup would have.

How does it work?

PopItUp use new modal presentation style introduced in iOS 8 to present the presented view controller on top of the presenting on.

By default the popup size is determined using autolayout which means that with the right constraints you don't have to worry about the popup size.

Screenshot

Exemple

Requirements

  • iOS 9.0+
  • Xcode 9.0+
  • Swift 4.0+

Installation

CocoaPods

if not installed yet install cocoaPods with the following command

$ gem install cocoapods

CocoaPods 1.1.0+ is required to build PopItUp

To integrate PopItUp into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'PopItUp'
end

This will install the latest version of Popup

Apply your configuration with the following command:

$ pod install

Usage

Presenting a popup view controller

import PopItUp


presentPopup(TestPopupViewController(), animated: true, completion: nil)

Dismiss the popup

Because we use the standard iOS modal system all you have to do is call the dismiss(animated:completion:) method

dismiss(animated: true, completion: nil)

Customize the popup presentation

The presentPopup method contains multiple parameters to customize the final result:

  • backgroundStyle: the background to display behind the popup. can be either a color or a blur.
  • constraints: List of constraints that apply to the popup.
  • transitioning: Transition to apply when presenting the view.
  • autoDismiss: true if the popup can be dismiss by a tap outside is bounds, false otherwise
presentPopup(TestPopupViewController(),
             animated: true,
             backgroundStyle: .blur(.dark), // present the popup with a blur effect has background
             constraints: [.leading(20), .width(220)], // fix leading edge and the width
             transitioning: .slide(.left), // the popup come and goes from the left side of the screen
             autoDismiss: false, // when touching outside the popup bound it is not dismissed
             completion: nil)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].