PopupController alternatives and similar libraries
Based on the "Popup" category.
Alternatively, view PopupController 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 -
PopupWindow
PopupWindow is a simple Popup using another UIWindow in Swift -
NMPopUpView
Simple Swift class for iOS that shows nice popup windows with animation. -
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 backend cloud platform
* 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 PopupController or a related project?
README
PopupController
PopupController is a controller for showing temporary popup view.
Demo
Try PopupController on Appetize.io
Installation
CocoaPods
pod 'PopupController'
Carthage
Future
Usage
Before use,
Every ViewController which is added on the PopupController must conform to PopupContentViewController protocol.
class AnyPopupViewController: UIViewController, PopupContentViewController {
// Do something...
private var popupSize: CGSize // define the size for showing popup view size.
// PopupContentViewController Protocol
func sizeForPopup(popupController: PopupController, size: CGSize, showingKeyboard: Bool) -> CGSize {
return popupSize
}
}
Then, show popup
PopupController
.create(self)
.show(AnyPopupViewController())
With some custom.
PopupController
.create(self)
.customize(
[
.Animation(.FadeIn),
.Layout(.Top),
.BackgroundStyle(.BlackFilter(alpha: 0.7))
]
)
.show(AnyPopupViewController())
With Handler
PopupController
.create(self)
.customize(
[
.Scrollable(false),
.DismissWhenTaps(true)
]
)
.didShowHandler { popup in
// Do something
}
.didCloseHandler { _ in
// Do something
}
.show(AnyPopupViewController())
If you use PopupController instance, do like this below
let popup = PopupController
.create(self)
.customize(
[
.Animation(.SlideUp)
]
)
.didShowHandler { popup in
// Do something
}
.didCloseHandler { _ in
// Do something
}
popup.show() // show popup
popup.dismiss() // dismiss popup
Customization
public enum PopupCustomOption {
case Layout(PopupController.PopupLayout)
case Animation(PopupController.PopupAnimation)
case BackgroundStyle(PopupController.PopupBackgroundStyle)
case Scrollable(Bool)
case DismissWhenTaps(Bool)
case MovesAlongWithKeyboard(Bool)
}
License
PopupController is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the PopupController README section above
are relevant to that project's source code only.