added comments
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8ba25bb661
commit
ea3ee2adda
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user