Swift-Prompts alternatives and similar libraries
Based on the "Alerts" category.
Alternatively, view Swift-Prompts alternatives based on common mentions on social networks and blogs.
-
SwiftMessages
A very flexible message bar for iOS written in Swift. -
SCLAlertView-Swift
Beautiful animated Alert View. Written in Swift -
TSMessages
💌 Easy to use and customizable messages/notifications for iOS à la Tweetbot -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
JDStatusBarNotification
[iOS] Easy, customizable notifications displayed on top of the statusbar. With progress and activity. iPhone X ready. -
CRToast
A modern iOS toast view that can fit your notification needs -
Whisper
:mega: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside -
Toast-Swift
A Swift extension that adds toast notifications to the UIView object class. -
PMAlertController
PMAlertController is a great and customizable alert that can substitute UIAlertController -
Jelly
🌊 - Jelly is a library for animated, non-interactive & interactive viewcontroller transitions and presentations with the focus on a simple and yet flexible API. -
RKDropdownAlert
iOS / Objective C: an extremely simple UIAlertView alternative -
RMDateSelectionViewController
This is an iOS control for selecting a date using UIDatePicker in an UIAlertController like manner -
CDAlertView
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift -
BRYXBanner
A lightweight dropdown notification for iOS 7+, in Swift. -
CFAlertViewController
It is a highly configurable iOS library which allows easy styling with built in styles as well as extra header and footer views so that you can make extremely unique alerts and action sheets. -
SwiftNotice
GUI library for displaying various popups (HUD), written in pure Swift. -
FCAlertView
FCAlertView is a Flat Customizable AlertView for iOS (Written in Objective C) -
NZAlertView
Simple and intuitive alert view. Similar to push notification effect. -
NYAlertViewController
Highly configurable iOS Alert Views with custom content views -
SwiftyDrop
Lightweight dropdown message bar in Swift. It's simple and beautiful. -
TTGSnackbar
TTGSnackbar shows simple message and action button on the bottom or top of the screen with multi kinds of animation, which is written in Swift3 and inspired by Snackbar in Android. It also support showing custom view, icon image or multi action button. -
SwiftOverlays
SwiftOverlays is a Swift GUI library for displaying various popups and notifications -
RMActionController
This is an iOS control for presenting any UIView in an UIAlertController like manner -
DOAlertController
Simple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet) -
SimpleAlert
Customizable simple Alert and simple ActionSheet for Swift -
RMPickerViewController
This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner -
HDNotificationView
Emulates the native Remote Notification View. -
NoticeBar
😍A simple NoticeBar written by Swift 3, similar with QQ notice view. -
LNRSimpleNotifications
Simple Swift in-app notifications -
CustomizableActionSheet
Action sheet allows including your custom views and buttons. -
BPStatusBarAlert
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar. -
LKAlertController
An easy to use UIAlertController builder for swift -
MaterialActionSheetController
A Google like action sheet for iOS written in Swift. -
Notie
In-app notification in Swift, with customizable buttons and input text field. -
RAlertView
AlertView, Ios popup window, A pop-up framework, Can be simple and convenient to join your project. IOS 提示框,IOS弹框,IOS弹窗 -
SnowGlobeFramework
Snow globe framework is delightful / slightly cheese easter egg for christmas season. Turns your awesome app into a snow globe, when user shake the device. -
AlertViewLoveNotification
A simple and attractive AlertView to ask permission to your users for Push Notification.
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 Swift-Prompts or a related project?
README
Installation
CocoaPods
Install with CocoaPods by adding the following to your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Swift-Prompts', '~> 1.0.0'
Note: We follow http://semver.org for versioning the public API.
Carthage
Using Carthage:
github "GabrielAlva/Swift-Prompts"
Manually
- Just include the three .swift files found on the
Swift Prompts
folder on the demo Xcode project.
Usage
Using Swift Prompts is very simple and fast.
Adopting the prompt's delegate
In your class declaration, after specifying the type of class write SwiftPromptsProtocol
as shown here:
class ViewController: UIViewController, SwiftPromptsProtocol
Now, depending on the type of prompt, you can use any of the optional delegate functions
func clickedOnTheMainButton() {}
func clickedOnTheSecondButton() {}
func promptWasDismissed() {}
Displaying a prompt
First you need to declare a var outside of a function:
var prompt = SwiftPromptsView()
Next, where you would like to trigger the prompt (e.g. in the action function of a button):
prompt = SwiftPromptsView(frame: self.view.bounds)
prompt.delegate = self
//Customization
self.view.addSubview(prompt)
Dismissing a prompt
To dismiss the prompt, you can write this line in one of the delegate functions or in a different one:
prompt.dismissPrompt()
Alternatively, the dismissal by gesture is enabled by default so you can dismiss a prompt by moving it up or down until it dims completely. Dismissal by gesture will trigger the promptWasDismissed()
delegate function.
Customization
Once you have your assigned the frame and delegate, you can customize the look and feel of your prompt and its background. You can customize almost every aspect of it as shown above including the width and height. The demo app is well documented for you to use any function of the customization API. To see the full list you can navigate to the SwiftPromptsView
class and look for the API pragma mark.
Example
You can find a full example on usage and customization on the Xcode project attached to this repository.
License
Source code of this project is available under the standard MIT license. Please have a look at [the license file](LICENSE.md).
*Note that all licence references and agreements mentioned in the Swift-Prompts README section above
are relevant to that project's source code only.