KRAlertController alternatives and similar libraries
Based on the "Alerts" category.
Alternatively, view KRAlertController 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. -
Swift-Prompts
A Swift library to design custom prompts with a great scope of options to choose from. -
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 - Power Real-Time Data Analytics at 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 KRAlertController or a related project?
README
[日本語](./README_Ja.md)
KRAlertController
KRAlertController
is a beautiful and easy-to-use alert controller for your iOS written by Swift.
Requirements
- iOS 10.0+
- Xcode 10.0+
- Swift 4.2+
DEMO
To run the example project, clone the repo, and open KRAlertControllerDemo.xcodeproj
from the DEMO directory.
or appetize.io
Installation
KRAlertController is available through CocoaPods and Carthage. To install it, simply add the following line to your Podfile or Cartfile:
# Podfile
pod "KRAlertController"
# Cartfile
github "Krimpedance/KRAlertController"
Usage
(see sample Xcode project in /Demo)
Mainly the same as UIAlertController.
At first, import KRAlertController
in your swift file.
Show simple alert.
KRAlertController(title: "Title", message: "message")
.addCancel()
.addAction("OK") { action, textFields in
print("OK")
}
.show()
Initializer
init(title: String?, message: String?, style: KRAlertControllerStyle = .Alert)
Alert types
There is 7 kinds of alert.
icon
pass true to display glaph icon; otherwise, pass false.
Default view controller to display alert is visible view controller of key window.
func show(presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showSuccess(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showInformation(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showWarning(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showError(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showEdit(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
func showAuthorize(icon icon: Bool, presentingVC: UIViewController? = nil, animated: Bool = true, completion: (() -> ())? = nil)
// Example
alert.showSuccess(true)
alert.showWarning(true, presentingVC: self, animated: false) {
print("Showed warning alert!")
}
Contributing to this project
I'm seeking bug reports and feature requests.
Release Note
3.1.0
- Compatible with Swift 4.2.
3.0.1
- Compatible with Swift 4.1.
3.0.0
- Supported Xcode9 and Swift4.
License
KRAlertController is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the KRAlertController README section above
are relevant to that project's source code only.