From 6e0b135f3013448ef6b2db4291ee42e353a9a28c Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 25 Apr 2024 15:14:55 -0500 Subject: [PATCH] forgot to add the action Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Views/ButtonIcon.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MVMCoreUI/Atomic/Atoms/Views/ButtonIcon.swift b/MVMCoreUI/Atomic/Atoms/Views/ButtonIcon.swift index 389033cb..89237662 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/ButtonIcon.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/ButtonIcon.swift @@ -27,6 +27,14 @@ open class ButtonIcon: VDS.ButtonIcon, VDSMoleculeViewProtocol { public func viewModelDidUpdate() { surface = viewModel.surface + onClick = { [weak self] control in + guard let self, let viewModel = self.viewModel else { return } + MVMCoreUIActionHandler.performActionUnstructured(with: viewModel.action, + sourceModel: viewModel, + additionalData: self.additionalData, + delegateObject: self.delegateObject) + } + badgeIndicatorModel = viewModel.badgeIndicatorModel kind = viewModel.kind surfaceType = viewModel.surfaceType