allow action delegate to perform the actiopn
This commit is contained in:
parent
f1195bb882
commit
0da94465b3
@ -29,7 +29,7 @@ public extension MVMCoreAlertObject {
|
|||||||
let alertAction = UIAlertAction(title: alertButtonModel.title, style: alertButtonModel.style) { action in
|
let alertAction = UIAlertAction(title: alertButtonModel.title, style: alertButtonModel.style) { action in
|
||||||
Task(priority: .userInitiated) {
|
Task(priority: .userInitiated) {
|
||||||
do {
|
do {
|
||||||
try await MVMCoreUIActionHandler.shared()?.handleAction(
|
try await (delegateObject?.actionDelegate as? ActionDelegateProtocol)?.performAction(
|
||||||
with: alertButtonModel.action,
|
with: alertButtonModel.action,
|
||||||
additionalData: additionalData,
|
additionalData: additionalData,
|
||||||
delegateObject: delegateObject
|
delegateObject: delegateObject
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user