mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Managing Favorites sections
This commit is contained in:
@@ -3,11 +3,19 @@ import Defaults
|
||||
enum TrendingCategory: String, CaseIterable, Identifiable, Defaults.Serializable {
|
||||
case `default`, music, gaming, movies
|
||||
|
||||
var id: TrendingCategory.RawValue {
|
||||
var id: RawValue {
|
||||
rawValue
|
||||
}
|
||||
|
||||
var name: String {
|
||||
var title: RawValue {
|
||||
rawValue.capitalized
|
||||
}
|
||||
|
||||
var name: String {
|
||||
id == "default" ? "Trending" : title
|
||||
}
|
||||
|
||||
var controlLabel: String {
|
||||
id == "default" ? "All" : title
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user