From 8f26fea875c6da21f58e1ca928c01fa28c75607a Mon Sep 17 00:00:00 2001 From: CMK Date: Tue, 22 Jun 2021 17:26:26 +0800 Subject: [PATCH] fix: missing highlighted state for hashtag cell in search scene --- .../SearchRecommendTagsCollectionViewCell.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Mastodon/Scene/Search/CollectionViewCell/SearchRecommendTagsCollectionViewCell.swift b/Mastodon/Scene/Search/CollectionViewCell/SearchRecommendTagsCollectionViewCell.swift index 002929510..3048037c8 100644 --- a/Mastodon/Scene/Search/CollectionViewCell/SearchRecommendTagsCollectionViewCell.swift +++ b/Mastodon/Scene/Search/CollectionViewCell/SearchRecommendTagsCollectionViewCell.swift @@ -51,6 +51,12 @@ class SearchRecommendTagsCollectionViewCell: UICollectionViewCell { super.init(coder: coder) configure() } + + override var isHighlighted: Bool { + didSet { + backgroundColor = isHighlighted ? Asset.Colors.brandBlueDarken20.color : Asset.Colors.brandBlue.color + } + } } extension SearchRecommendTagsCollectionViewCell {