mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 10:44:06 +00:00
Search and trending menus for iOS
This commit is contained in:
@@ -21,6 +21,19 @@ enum TrendingCategory: String, CaseIterable, Identifiable, Defaults.Serializable
|
||||
}
|
||||
}
|
||||
|
||||
var systemImage: String {
|
||||
switch self {
|
||||
case .default:
|
||||
return "chart.bar"
|
||||
case .music:
|
||||
return "music.note"
|
||||
case .gaming:
|
||||
return "gamecontroller"
|
||||
case .movies:
|
||||
return "film"
|
||||
}
|
||||
}
|
||||
|
||||
var name: String {
|
||||
id == "default" ? "Trending".localized() : title
|
||||
}
|
||||
|
Reference in New Issue
Block a user