Changing the way accessibility trait is set.

This commit is contained in:
Sumanth Nadigadda 2021-08-16 23:00:43 +05:30
parent a005d9e5c1
commit c0828f69ee

View File

@ -43,9 +43,16 @@ import Foundation
// MARK: - Accessibility
//-----------------------------------------------------
/// Ensures voice over does not read "selected" after user triggers action on cell.
override public var accessibilityTraits: UIAccessibilityTraits {
get {
return (accessoryView != nil) ? .button : .none
}
set {}
}
func updateAccessibilityLabel() {
isAccessibilityElement = true
accessibilityTraits = (accessoryView != nil) ? .button : .none
var message = ""
if let headlineLabel = headlineBody.headlineLabel.text {