KRAlertController alternatives and similar libraries
Based on the "Alert" category.
Alternatively, view KRAlertController alternatives based on common mentions on social networks and blogs.
-
SwiftMessages
A very flexible message bar for iOS written in Swift. -
Alerts Pickers
Advanced usage of UIAlertController with TextField, DatePicker, PickerView, TableView and CollectionView. -
NotificationBanner
The easiest way to display highly customizable in app notification banners in iOS. -
PopupDialog
A simple, customizable popup dialog. Replaces UIAlertController alert style. -
XLActionController
Fully customizable and extensible action sheet controller written in Swift 2. -
PMAlertController
PMAlertController is a great and customizable substitute to UIAlertController -
Jelly
Jelly provides custom view controller transitions with just a few lines of code. -
CDAlertView
Highly customizable alert/notification/success/error/alarm popup -
SPAlert
Native popup from Apple Music & Feedback in AppStore. Contains Done & Heart presets. -
Queuer
Queuer is a queue manager, build on top of OperationQueue and Dispatch (aka GCD). -
StatusAlert
Display Apple system-like self-hiding status alerts without interrupting user flow. -
GSMessage
A simple style messages/notifications for iOS 7+. -
CFNotify
A customizable framework to create draggable alert views. -
Sheet
Actionsheet with navigation features such as the Flipboard App. -
AwaitToast
🍞 An async waiting toast with basic toast. Inspired by facebook posting toast. -
MaterialActionSheetController
A Google like action sheet, easy to use and customizable. -
Notie
In-app notification in Swift, with customizable buttons and input text field. -
ALRT
An easier constructor for UIAlertController. Present an alert from anywhere. -
HYAlertController
A simple and minimalist iOS AlertController written in Swift 3. -
GSAlert
If you want to use UIAlertController, but still need to support iOS 7 this project is for you. -
Indicate
Interactive notification pop-over (aka "Toast) modeled after the iOS AirPods and Apple Pencil indicator. -
SwiftAlertController
Nice and easy UIAlertController extensions
Scout APM - Leading-edge performance monitoring starting at $39/month
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
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.