not resetting if the current count is correct

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-01-29 12:58:55 -06:00
parent 1932fd7231
commit d81daf1df3

View File

@ -34,7 +34,6 @@ import VDS
buttonGroup.alignment = .center
buttonGroup.rowQuantityPhone = 2
buttonGroup.rowQuantityTablet = 2
buttonGroup.childWidth = .percentage(50)
}
//--------------------------------------------------
@ -69,8 +68,12 @@ import VDS
primaryButton.set(with: primaryModel, delegateObject, additionalData)
buttons.append(primaryButton)
}
buttonGroup.childWidth = viewModel.fillContainer ? .percentage(100) : nil
buttonGroup.buttons = buttons
if buttons.count != buttonGroup.buttons.count {
buttonGroup.buttons = buttons
}
}
//--------------------------------------------------
@ -84,6 +87,7 @@ import VDS
//--------------------------------------------------
// MARK: - MVMCoreViewProtocol
//--------------------------------------------------
public func updateView(_ size: CGFloat) {
setNeedsUpdate()
}