This commit is contained in:
Scott Pfeil 2023-04-19 16:44:39 -04:00
parent 7df6882907
commit 67a0ccfbac

View File

@ -71,17 +71,6 @@ public class AlertHandler {
let alertController = createAlertController(with: alertObject.alertModel)
let alertOperation = AlertOperation(with: alertController, alertObject: alertObject)
// If an existing greedy alert is showing, add it as a dependency.
if let greedyAlertOperation = queue.operations.first(where: { operation in
guard !operation.isFinished,
!operation.isCancelled,
let alertOperation = operation as? AlertOperation else { return false }
return alertOperation.alertObject.isGreedy
}) {
alertOperation.addDependency((greedyAlertOperation as! AlertOperation))
}
queue.addOperation(alertOperation)
return alertController
}