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.
-
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS -
JDStatusBarNotification
Highly customizable & feature rich notifications. Interactive dismiss. Custom Views. SwiftUI. Tap-to-hold. Progress. Written in Swift, compatible for ObjC! -
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 -
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. -
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 -
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. -
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. -
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) -
RMPickerViewController
This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner -
BPStatusBarAlert
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar. -
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.
InfluxDB - Purpose built for real-time analytics at any scale.
* 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.