Merge branch 'bugfix/custom_access_internal' into 'develop'
AccessibilityCustomAction requires more than an empty string. See merge request BPHV_MIPS/mvm_core_ui!228
This commit is contained in:
commit
b158e07383
@ -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