Merge pull request #919 from j-f1/recent-searches-heading
IOS-78: Mark “Recent searches” as a heading
This commit is contained in:
commit
9f40f4ae0f
|
@ -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
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue