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 {