mirror of
https://github.com/yattee/yattee.git
synced 2024-12-23 14:03:41 +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
|
|
}
|
|
}
|