From 0da94465b369adc4a0ba632d1b19651f9adaf2f0 Mon Sep 17 00:00:00 2001 From: Kyle Matthew Hedden Date: Thu, 27 Oct 2022 17:49:49 -0400 Subject: [PATCH] allow action delegate to perform the actiopn --- MVMCoreUI/Alerts/MVMCoreAlertObject+Swift.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Alerts/MVMCoreAlertObject+Swift.swift b/MVMCoreUI/Alerts/MVMCoreAlertObject+Swift.swift index ea9dfd98..0adae2e2 100644 --- a/MVMCoreUI/Alerts/MVMCoreAlertObject+Swift.swift +++ b/MVMCoreUI/Alerts/MVMCoreAlertObject+Swift.swift @@ -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