added codable to enums
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
ef1ca0f6ab
commit
d2d8140b70
@ -11,7 +11,7 @@ import VDSColorTokens
|
||||
import VDSFormControlsTokens
|
||||
import Combine
|
||||
|
||||
public enum ButtonSize: String, Codable, CaseIterable {
|
||||
public enum ButtonSize: String, CaseIterable, Codable {
|
||||
case large
|
||||
case small
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ open class ButtonGroup: View, UICollectionViewDataSource, UICollectionViewDelega
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum ButtonPosition: String, CaseIterable {
|
||||
public enum ButtonPosition: String, CaseIterable, Codable {
|
||||
case left, center, right
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ open class TextLinkCaret: ButtonBase {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum IconPosition: String, CaseIterable {
|
||||
public enum IconPosition: String, CaseIterable, Codable {
|
||||
case left, right
|
||||
}
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ import VDSColorTokens
|
||||
import UIKit
|
||||
|
||||
extension Icon {
|
||||
public enum Color: String, CaseIterable {
|
||||
public enum Color: String, CaseIterable, Codable {
|
||||
case black
|
||||
case white
|
||||
case red
|
||||
|
||||
@ -16,7 +16,7 @@ open class EntryField: Control, Accessable {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum HelperTextPlacement: String, CaseIterable {
|
||||
public enum HelperTextPlacement: String, CaseIterable, Codable {
|
||||
case bottom, right
|
||||
}
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ public class InputField: EntryField, UITextFieldDelegate {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum FieldType: String, CaseIterable {
|
||||
public enum FieldType: String, CaseIterable, Codable {
|
||||
case text, number, calendar, inlineAction, password, creditCard, tel, date, securityCode
|
||||
}
|
||||
|
||||
|
||||
@ -34,14 +34,14 @@ open class TileContainer: Control {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum BackgroundColor: String, Codable, CaseIterable {
|
||||
public enum BackgroundColor: String, CaseIterable, Codable {
|
||||
case white
|
||||
case black
|
||||
case gray
|
||||
case transparent
|
||||
}
|
||||
|
||||
public enum Padding: String, Codable, CaseIterable {
|
||||
public enum Padding: String, CaseIterable, Codable {
|
||||
case padding2X
|
||||
case padding4X
|
||||
case padding6X
|
||||
@ -64,7 +64,7 @@ open class TileContainer: Control {
|
||||
}
|
||||
}
|
||||
|
||||
public enum AspectRatio: String, Codable, CaseIterable {
|
||||
public enum AspectRatio: String, CaseIterable, Codable {
|
||||
case ratio1x1 = "1:1"
|
||||
case ratio3x4 = "3:4"
|
||||
case ratio4x3 = "4:3"
|
||||
|
||||
@ -15,7 +15,7 @@ open class Tilelet: TileContainer {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Enums
|
||||
//--------------------------------------------------
|
||||
public enum TextPosition: String, Codable, CaseIterable {
|
||||
public enum TextPosition: String, CaseIterable, Codable {
|
||||
case top
|
||||
case bottom
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user