Uses filled symbol images for category menu picker

This commit is contained in:
Riley Testut
2023-12-08 18:41:12 -06:00
committed by Magesh K
parent 5d27397f03
commit d7aa3b405d

View File

@@ -465,7 +465,7 @@ private extension BrowseViewController
let actions = sortedCategories.map { category in let actions = sortedCategories.map { category in
let state: UIAction.State = (category == self.category) ? .on : .off let state: UIAction.State = (category == self.category) ? .on : .off
let image = UIImage(systemName: category.symbolName)?.withTintColor(category.tintColor, renderingMode: .alwaysOriginal) let image = UIImage(systemName: category.filledSymbolName)?.withTintColor(category.tintColor, renderingMode: .alwaysOriginal)
return UIAction(title: category.localizedName, image: image, state: state) { _ in return UIAction(title: category.localizedName, image: image, state: state) { _ in
handler(category) handler(category)
} }