SystemAlertQueue 2.2.0

SystemAlertQueue 2.2.0

ivan.georgievIliyan IvanovAleksandar GeymanVesela IlchevskaDimitar Petrovdimitar.petrovKostadin Zamanov维护。



  • Scalefocus

SystemAlertQueue

Swift Version Build Status License CocoaPods Compatible Platform

通过将警报加入队列并按顺序呈现它们来实现警报简单管理的库。可以设置优先级以进行更精细的控制。

需求

  • iOS 11.0+
  • Swift 5

安装

SystemAlertQueue 通过 CocoaPods 提供。要安装它,只需在 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 根据 MIT 许可证提供。更多详细信息,请参阅 LICENSE 文件。