NMPopUpView alternatives and similar libraries
Based on the "Popup" category.
Alternatively, view NMPopUpView alternatives based on common mentions on social networks and blogs.
-
SwiftEntryKit
SwiftEntryKit is a presentation library for iOS. It can be used to easily display overlays within your iOS apps. -
PopupDialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style. -
LNPopupController
LNPopupController is a framework for presenting view controllers as popups of other view controllers, much like the Apple Music and Podcasts apps. -
STPopup
STPopup provides STPopupController, which works just like UINavigationController in popup style, for both iPhone and iPad. It's written in Objective-C and compatible with Swift. -
MMPopupView
Pop-up based view(e.g. alert sheet), can be easily customized. -
CNPPopupController
Simple and versatile class for presenting a custom popup in a variety of fashions. It includes a many options for controlling how your popup appears and behaves. -
KLCPopup
A simple and flexible class for presenting custom views as a popup in iOS. -
AZDialogViewController
A highly customizable alert dialog controller that mimics Snapchat's alert dialog. -
MIBlurPopup
MIBlurPopup lets you create popups with a blurred background -
PopupController
PopupController is a controller for showing temporary popup view. -
PopupWindow
PopupWindow is a simple Popup using another UIWindow in Swift -
SubscriptionPrompt
Subscription View Controller like the Tinder uses -
PBPopupController
A framework for presenting bars and view controllers as popup, much like the look and feel of Apple Music App. -
PopupKit
Simple way to present custom views as a popup in iOS and tvOS.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of NMPopUpView or a related project?
README
NMPopUpView
Simple class for iOS that shows nice popup windows, written in Swift. The project is build with Swift 4.0, so you need Xcode 9.0 or higher to use it.
Installation
Automatic installation using CocoaPods
Add this to your podfile and run pod install
:
pod "NMPopUpViewSwift"
Manual installation
To use it in your application, just import PopViewControllerSwift.swift
(or . If you still need the Objective-C version, download manually version 2.1 from here), PopViewController.h
, PopViewController.m
if you want to use the Objective-C versionPopViewController.xib
and PopViewController_iPad.xib
, PopViewController_iPhone6.xib
, PopViewController_iPhone6Plus.xib
files (or the NMPopUpViewController
group from the example project) in your project:
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Swift
var popViewController : PopUpViewController = PopUpViewControllerSwift(nibName: "PopUpViewController", bundle: nil)
and call the pop up using this code in Swift:
popViewController.title = "This is a popup view"
popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
To get the appropriate .xib for your screen size declare the popUp as a forced unrapped variable and then use a method similar to the one below in order to call it:
var popViewController : PopUpViewControllerSwift!
@IBAction func showPopUp(sender: AnyObject) {
let bundle = NSBundle(forClass: PopUpViewControllerSwift.self)
if (UIDevice.currentDevice().userInterfaceIdiom == .Pad)
{
self.popViewController = PopUpViewControllerSwift(nibName: "PopUpViewController_iPad", bundle: bundle)
self.popViewController.title = "This is a popup view"
self.popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
} else
{
if UIScreen.mainScreen().bounds.size.width > 320 {
if UIScreen.mainScreen().scale == 3 {
self.popViewController = PopUpViewControllerSwift(nibName: "PopUpViewController_iPhone6Plus", bundle: bundle)
self.popViewController.title = "This is a popup view"
self.popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
} else {
self.popViewController = PopUpViewControllerSwift(nibName: "PopUpViewController_iPhone6", bundle: bundle)
self.popViewController.title = "This is a popup view"
self.popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
}
} else {
self.popViewController = PopUpViewControllerSwift(nibName: "PopUpViewController", bundle: bundle)
self.popViewController.title = "This is a popup view"
self.popViewController.showInView(self.view, withImage: UIImage(named: "typpzDemo"), withMessage: "You just triggered a great popup window", animated: true)
}
}
}
Objective-C
PopUpViewControllerSwift *popViewController = [[PopUpViewControllerSwift alloc]
initWithNibName:@"PopUpViewController" bundle:nil];
[popViewController setTitle:@"This is a popup view"];
[popViewController showInView:self.view
withImage:[UIImage imageNamed:@"yourImage"]
withMessage:@"Your Message" animated:YES];
Final output is shown below:
A walkthrough tutorial for the Objective-C version can be found here and for the Swift version here.
The MIT License (MIT)
Copyright (c) 2013 Nikos Maounis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the NMPopUpView README section above
are relevant to that project's source code only.