added codable to enums
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b8ae2ec647
commit
3b037d8443
@ -31,14 +31,14 @@ open class TileContainer: Control {
|
|||||||
initialSetup()
|
initialSetup()
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ContainerBackgroundColor: String, CaseIterable {
|
public enum ContainerBackgroundColor: String, Codable, CaseIterable {
|
||||||
case white
|
case white
|
||||||
case black
|
case black
|
||||||
case gray
|
case gray
|
||||||
case transparent
|
case transparent
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ContainerPadding: String, EnumSubset {
|
public enum ContainerPadding: String, Codable, EnumSubset {
|
||||||
case spacing2X
|
case spacing2X
|
||||||
case spacing4X
|
case spacing4X
|
||||||
case spacing6X
|
case spacing6X
|
||||||
@ -48,7 +48,7 @@ open class TileContainer: Control {
|
|||||||
public var defaultValue: VDSLayout.Spacing { .space4X }
|
public var defaultValue: VDSLayout.Spacing { .space4X }
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ContainerScalingType: String, CaseIterable {
|
public enum ContainerScalingType: String, Codable, CaseIterable {
|
||||||
case ratio1x1 = "1:1"
|
case ratio1x1 = "1:1"
|
||||||
case ratio3x4 = "3:4"
|
case ratio3x4 = "3:4"
|
||||||
case ratio4x3 = "4:3"
|
case ratio4x3 = "4:3"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user