Simple manager that presents alerts by adding them in queue and chains their presentation. A priority can be set to have further control.
- iOS 11.0+
- Swift 5
SystemAlertQueue is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SystemAlertQueue'
AlertFactoryManager.shared.presentSimpleAlert(withMessage: "I am Simple Alert!", title: nil)
let defaultAction = UIAlertAction(title: "Default", style: .default, handler: nil)
let destructive = UIAlertAction(title: "Destructive", style: .destructive, handler: nil)
let cancel = UIAlertAction(title: "Cancel", style: .cancel, handler: nil)
AlertFactoryManager.shared.presentActionAlert(withMessage: "Hello, I am ActionAlert!",
title: nil,
withActions: [defaultAction, destructive, cancel])
SystemAlertQueue is available under the MIT license. See the LICENSE file for more info.