yattee/Model/TrendingCategory.swift

12 lines
227 B
Swift
Raw Normal View History

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