mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Merge pull request #5104 from stuartbreckenridge/fixes/5103-accessibility-label
🩹 Fix 5103 - Accessibility label reapplied to timeline cell
This commit is contained in:
1 file changed
+8
@@ -106,6 +106,14 @@ class MainTimelineCollectionViewCell: UICollectionViewCell {
|
||||
}
|
||||
|
||||
articleDate.text = cellData.dateString
|
||||
updateAccessibilityLabel()
|
||||
}
|
||||
|
||||
private func updateAccessibilityLabel() {
|
||||
let starredStatus = cellData.starred ? "\(NSLocalizedString("Starred", comment: "Starred article for accessibility")), " : ""
|
||||
let unreadStatus = cellData.read ? "" : "\(NSLocalizedString("Unread", comment: "Unread")), "
|
||||
let label = starredStatus + unreadStatus + "\(cellData.feedName), \(cellData.title), \(cellData.summary), \(cellData.dateString)"
|
||||
accessibilityLabel = label
|
||||
}
|
||||
|
||||
private func updateIndicatorView(_ state: UICellConfigurationState) {
|
||||
|
||||
Reference in new issue
Block a user