From 59175c45fc26bc55e41064b15b89f6bd54da1caf Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 29 Jan 2024 14:16:27 -0600 Subject: [PATCH] added previousModel Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroup.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroup.swift b/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroup.swift index 9e33ac7a..ba9f8b56 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroup.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroup.swift @@ -47,6 +47,7 @@ import VDS // create / set the moleculeViews if (previousModel == nil) || Self.nameForReuse(with: previousModel!, delegateObject) != Self.nameForReuse(with: viewModel, delegateObject) { + previousModel = viewModel var buttonBases = [ButtonBase]() viewModel.buttons.forEach { buttonModel in do {