Indicate that the header is a button when it is tappable. Issue #1583
This commit is contained in:
parent
3115abc72e
commit
edd299a36d
|
@ -564,8 +564,10 @@ private extension MasterTimelineViewController {
|
||||||
if coordinator.timelineFeed is WebFeed {
|
if coordinator.timelineFeed is WebFeed {
|
||||||
titleView.heightAnchor.constraint(equalToConstant: 44.0).isActive = true
|
titleView.heightAnchor.constraint(equalToConstant: 44.0).isActive = true
|
||||||
titleView.addGestureRecognizer(feedTapGestureRecognizer)
|
titleView.addGestureRecognizer(feedTapGestureRecognizer)
|
||||||
|
titleView.accessibilityTraits = .button
|
||||||
} else {
|
} else {
|
||||||
titleView.removeGestureRecognizer(feedTapGestureRecognizer)
|
titleView.removeGestureRecognizer(feedTapGestureRecognizer)
|
||||||
|
titleView.accessibilityTraits.remove(.button)
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationItem.titleView = titleView
|
navigationItem.titleView = titleView
|
||||||
|
|
Loading…
Reference in New Issue