Accessibility label changes
This commit is contained in:
parent
849381ae6f
commit
10b153489d
@ -124,10 +124,6 @@ import Foundation
|
|||||||
message += leftSubBodyText + ", "
|
message += leftSubBodyText + ", "
|
||||||
}
|
}
|
||||||
|
|
||||||
if let heartLabel = heart.accessibilityLabel {
|
|
||||||
message += heartLabel + ", "
|
|
||||||
}
|
|
||||||
|
|
||||||
if let rightLabelText = rightLabel.text, !rightLabelText.isEmpty {
|
if let rightLabelText = rightLabel.text, !rightLabelText.isEmpty {
|
||||||
message += rightLabelText
|
message += rightLabelText
|
||||||
}
|
}
|
||||||
@ -143,7 +139,12 @@ import Foundation
|
|||||||
} else {
|
} else {
|
||||||
// Make whole cell focusable if no action.
|
// Make whole cell focusable if no action.
|
||||||
isAccessibilityElement = true
|
isAccessibilityElement = true
|
||||||
accessibilityLabel = getAccessibilityMessage()
|
if let message = getAccessibilityMessage(),
|
||||||
|
let heartLabel = heart.accessibilityLabel {
|
||||||
|
accessibilityLabel = message + ", " + heartLabel
|
||||||
|
} else {
|
||||||
|
accessibilityLabel = getAccessibilityMessage()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user