yattee/Model/TrendingCategory.swift

14 lines
267 B
Swift
Raw Normal View History

import Defaults
enum TrendingCategory: String, CaseIterable, Identifiable, Defaults.Serializable {
2021-06-17 10:02:39 +00:00
case `default`, music, gaming, movies
var id: TrendingCategory.RawValue {
rawValue
}
var name: String {
rawValue.capitalized
}
}