From ea3ee2addab585d0682b2d906c0a68df147c98a7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 11 Jan 2024 11:42:53 -0600 Subject: [PATCH] added comments Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroupModel.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroupModel.swift b/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroupModel.swift index 060c11af..0ee3b68e 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroupModel.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/ButtonGroupModel.swift @@ -18,6 +18,9 @@ public class ButtonGroupModel: MoleculeModelProtocol { public var id: String = UUID().uuidString public var backgroundColor: Color? + //-------------------------------------------------- + // MARK: - VDS Properties + //-------------------------------------------------- public var buttons: [ButtonModelProtocol & MoleculeModelProtocol] public var alignment: VDS.ButtonGroup.Alignment = .center public var rowQuantityPhone: Int = 0 @@ -55,8 +58,8 @@ public class ButtonGroupModel: MoleculeModelProtocol { alignment = try typeContainer.decodeIfPresent(VDS.ButtonGroup.Alignment.self, forKey: .alignment) ?? .center rowQuantityPhone = try typeContainer.decodeIfPresent(Int.self, forKey: .rowQuantityPhone) ?? 0 rowQuantityTablet = try typeContainer.decodeIfPresent(Int.self, forKey: .rowQuantityTablet) ?? 0 - childWidthValue = try typeContainer.decodeIfPresent(CGFloat.self, forKey: .childWidthValue) ?? 0.0 - childWidthPercentage = try typeContainer.decodeIfPresent(CGFloat.self, forKey: .childWidthPercentage) ?? 0.0 + childWidthValue = try typeContainer.decodeIfPresent(CGFloat.self, forKey: .childWidthValue) + childWidthPercentage = try typeContainer.decodeIfPresent(CGFloat.self, forKey: .childWidthPercentage) } public func encode(to encoder: Encoder) throws {