caseiterable

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-01 11:53:44 -05:00
parent 482d3854a1
commit 214a7e0a67

View File

@ -21,7 +21,7 @@ public enum VDSFontWeight: String, Codable {
} }
} }
public enum VDSTextPosition: String, Codable { public enum VDSTextPosition: String, Codable, CaseIterable {
case left, right, center case left, right, center
var textAlignment: NSTextAlignment { var textAlignment: NSTextAlignment {
@ -36,7 +36,7 @@ public enum VDSTextPosition: String, Codable {
} }
} }
public enum VDSFontCategory: String, Codable { public enum VDSFontCategory: String, Codable, CaseIterable {
case feature case feature
case title case title
case body case body
@ -52,7 +52,7 @@ public enum VDSFontCategory: String, Codable {
} }
} }
public enum VDSFontSize: String, Codable { public enum VDSFontSize: String, Codable, CaseIterable {
case xxlarge case xxlarge
case xlarge case xlarge
case large case large
@ -72,7 +72,7 @@ public enum VDSFontSize: String, Codable {
} }
} }
public enum VDSFontStyle: String, Codable { public enum VDSFontStyle: String, Codable, CaseIterable {
public enum Error: Swift.Error { public enum Error: Swift.Error {
case fontNotFound case fontNotFound
} }