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:
Pfeil, Scott Robert 2020-01-21 13:55:19 -05:00
commit b158e07383

View File

@ -66,7 +66,7 @@ public typealias CoreObjectActionLoadPresentDelegate = MVMCoreActionDelegateProt
} else {
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.accessibilityCustomActions = [accessibleAction]