mirror of
https://github.com/yattee/yattee.git
synced 2024-11-14 01:58:24 +00:00
22 lines
406 B
Swift
22 lines
406 B
Swift
import Defaults
|
|
|
|
enum TrendingCategory: String, CaseIterable, Identifiable, Defaults.Serializable {
|
|
case `default`, music, gaming, movies
|
|
|
|
var id: RawValue {
|
|
rawValue
|
|
}
|
|
|
|
var title: RawValue {
|
|
rawValue.capitalized
|
|
}
|
|
|
|
var name: String {
|
|
id == "default" ? "Trending" : title
|
|
}
|
|
|
|
var controlLabel: String {
|
|
id == "default" ? "All" : title
|
|
}
|
|
}
|