mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 23:00:32 +05:30
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
|
|
}
|
|
}
|