From 0e3c837b66ea3a833f46d8243443b4c166ed0873 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 9 Jan 2020 17:54:13 -0700 Subject: [PATCH] Change accessibility ordering of labels to make it more hierarchical when spoken in VoiceOver. Issue #1584 --- iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift b/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift index 796d468f6..5733b02ae 100644 --- a/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift +++ b/iOS/MasterTimeline/Cell/MasterTimelineTableViewCell.swift @@ -200,6 +200,10 @@ private extension MasterTimelineTableViewCell { } } + func updateAccessiblityLabel() { + accessibilityLabel = "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)" + } + func makeIconEmpty() { if iconView.iconImage != nil { iconView.iconImage = nil @@ -232,6 +236,7 @@ private extension MasterTimelineTableViewCell { updateUnreadIndicator() updateStarView() updateIconImage() + updateAccessiblityLabel() } }