Change accessibility ordering of labels to make it more hierarchical when spoken in VoiceOver. Issue #1584

This commit is contained in:
Maurice Parker 2020-01-09 17:54:13 -07:00
parent 22057c3b1b
commit 0e3c837b66
1 changed files with 5 additions and 0 deletions

View File

@ -200,6 +200,10 @@ private extension MasterTimelineTableViewCell {
} }
} }
func updateAccessiblityLabel() {
accessibilityLabel = "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)"
}
func makeIconEmpty() { func makeIconEmpty() {
if iconView.iconImage != nil { if iconView.iconImage != nil {
iconView.iconImage = nil iconView.iconImage = nil
@ -232,6 +236,7 @@ private extension MasterTimelineTableViewCell {
updateUnreadIndicator() updateUnreadIndicator()
updateStarView() updateStarView()
updateIconImage() updateIconImage()
updateAccessiblityLabel()
} }
} }