Indicate that the header is a button when it is tappable. Issue #1583

This commit is contained in:
Maurice Parker 2020-01-09 17:22:37 -07:00
parent 3115abc72e
commit edd299a36d
1 changed files with 2 additions and 0 deletions

View File

@ -564,8 +564,10 @@ private extension MasterTimelineViewController {
if coordinator.timelineFeed is WebFeed {
titleView.heightAnchor.constraint(equalToConstant: 44.0).isActive = true
titleView.addGestureRecognizer(feedTapGestureRecognizer)
titleView.accessibilityTraits = .button
} else {
titleView.removeGestureRecognizer(feedTapGestureRecognizer)
titleView.accessibilityTraits.remove(.button)
}
navigationItem.titleView = titleView