allow action delegate to perform the actiopn

This commit is contained in:
Kyle Matthew Hedden 2022-10-27 17:49:49 -04:00
parent f1195bb882
commit 0da94465b3

View File

@ -29,7 +29,7 @@ public extension MVMCoreAlertObject {
let alertAction = UIAlertAction(title: alertButtonModel.title, style: alertButtonModel.style) { action in
Task(priority: .userInitiated) {
do {
try await MVMCoreUIActionHandler.shared()?.handleAction(
try await (delegateObject?.actionDelegate as? ActionDelegateProtocol)?.performAction(
with: alertButtonModel.action,
additionalData: additionalData,
delegateObject: delegateObject