yattee/Shared/ListingLayout.swift

19 lines
321 B
Swift
Raw Normal View History

2021-06-26 23:29:55 +00:00
import Defaults
2021-07-07 22:39:18 +00:00
enum ListingLayout: String, CaseIterable, Identifiable, Defaults.Serializable {
2021-06-26 23:29:55 +00:00
case list, cells
2021-07-07 22:39:18 +00:00
var id: String {
rawValue
}
2021-06-26 23:29:55 +00:00
var name: String {
switch self {
case .list:
return "List"
case .cells:
return "Cells"
}
}
}