Merge pull request #919 from j-f1/recent-searches-heading

IOS-78: Mark “Recent searches” as a heading
This commit is contained in:
Marcus Kida 2023-02-07 09:49:48 +01:00 committed by GitHub
commit 9f40f4ae0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ final class SearchHistorySectionHeaderCollectionReusableView: UICollectionReusab
label.font = UIFontMetrics(forTextStyle: .headline).scaledFont(for: .systemFont(ofSize: 22, weight: .bold))
label.textColor = Asset.Colors.Label.primary.color
label.text = L10n.Scene.Search.Searching.recentSearch
label.accessibilityTraits.insert(.header)
return label
}()
@ -32,6 +33,8 @@ final class SearchHistorySectionHeaderCollectionReusableView: UICollectionReusab
let button = UIButton(type: .system)
button.setImage(UIImage(systemName: "xmark.circle.fill"), for: .normal)
button.tintColor = Asset.Colors.Label.secondary.color
button.accessibilityLabel = L10n.Scene.Search.Searching.clear
return button
}()