yattee/Shared/ListingLayout.swift
2021-07-08 00:54:35 +02:00

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"
}
}
}