fix: missing highlighted state for account recommend cell in search scene

This commit is contained in:
CMK 2021-06-22 17:30:42 +08:00
parent ca8656be1b
commit cb2a89afca
1 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,13 @@ class SearchRecommendAccountsCollectionViewCell: UICollectionViewCell {
super.init(coder: coder)
configure()
}
override var isHighlighted: Bool {
didSet {
contentView.alpha = isHighlighted ? 0.8 : 1.0
}
}
}
extension SearchRecommendAccountsCollectionViewCell {