mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
19 lines
321 B
Swift
19 lines
321 B
Swift
import Defaults
|
|
|
|
enum ListingLayout: String, CaseIterable, Identifiable, Defaults.Serializable {
|
|
case list, cells
|
|
|
|
var id: String {
|
|
rawValue
|
|
}
|
|
|
|
var name: String {
|
|
switch self {
|
|
case .list:
|
|
return "List"
|
|
case .cells:
|
|
return "Cells"
|
|
}
|
|
}
|
|
}
|