AccessibilityCustomAction requires more than an empty string.
This commit is contained in:
parent
e4b9449d2e
commit
cedcc6b099
@ -66,7 +66,7 @@ public typealias CoreObjectActionLoadPresentDelegate = MVMCoreActionDelegateProt
|
|||||||
} else {
|
} else {
|
||||||
guard let label = label else { return }
|
guard let label = label else { return }
|
||||||
|
|
||||||
let accessibleAction = UIAccessibilityCustomAction(name: actionText ?? "", target: label, selector: #selector(label.accessibilityCustomAction(_:)))
|
let accessibleAction = UIAccessibilityCustomAction(name: actionText ?? "label", target: label, selector: #selector(label.accessibilityCustomAction(_:)))
|
||||||
label.clauses = [Label.ActionableClause(range: actionRange, actionBlock: newActionBlock, accessibilityID: accessibleAction.hash)]
|
label.clauses = [Label.ActionableClause(range: actionRange, actionBlock: newActionBlock, accessibilityID: accessibleAction.hash)]
|
||||||
label.accessibilityCustomActions = [accessibleAction]
|
label.accessibilityCustomActions = [accessibleAction]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user