fix: missing highlighted state for hashtag cell in search scene

This commit is contained in:
CMK 2021-06-22 17:26:26 +08:00
parent 14f555f82f
commit 8f26fea875
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ class SearchRecommendTagsCollectionViewCell: UICollectionViewCell {
super.init(coder: coder) super.init(coder: coder)
configure() configure()
} }
override var isHighlighted: Bool {
didSet {
backgroundColor = isHighlighted ? Asset.Colors.brandBlueDarken20.color : Asset.Colors.brandBlue.color
}
}
} }
extension SearchRecommendTagsCollectionViewCell { extension SearchRecommendTagsCollectionViewCell {