1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-13 13:50:32 +05:30
yattee/Shared/ListingLayout.swift

19 lines
321 B
Swift
Raw Normal View History

2021-06-27 04:59:55 +05:30
import Defaults
2021-07-08 04:09:18 +05:30
enum ListingLayout: String, CaseIterable, Identifiable, Defaults.Serializable {
2021-06-27 04:59:55 +05:30
case list, cells
2021-07-08 04:09:18 +05:30
var id: String {
rawValue
}
2021-06-27 04:59:55 +05:30
var name: String {
switch self {
case .list:
return "List"
case .cells:
return "Cells"
}
}
}