removed accessibility so we can use the VDS version
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
675ba3eaff
commit
2675488ab3
@ -83,28 +83,7 @@ import VDS
|
|||||||
self.init(frame: .zero)
|
self.init(frame: .zero)
|
||||||
isSelected = isChecked
|
isSelected = isChecked
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Lifecycle
|
|
||||||
//--------------------------------------------------
|
|
||||||
|
|
||||||
open override func setup() {
|
|
||||||
super.setup()
|
|
||||||
bridge_accessibilityLabelBlock = { [weak self] in
|
|
||||||
// Attention: This needs to be addressed with the accessibility team.
|
|
||||||
// NOTE: Currently emptying description part of MVMCoreUICheckBox accessibility label to avoid crashing!
|
|
||||||
guard let self,
|
|
||||||
let state = MVMCoreUIUtility.hardcodedString(withKey: isSelected ? "checkbox_checked_state" : "checkbox_unchecked_state")
|
|
||||||
else { return nil }
|
|
||||||
|
|
||||||
return String(format: MVMCoreUIUtility.hardcodedString(withKey: "checkbox_desc_state") ?? "%@%@", "", state)
|
|
||||||
}
|
|
||||||
|
|
||||||
bridge_accessibilityHintBlock = {
|
|
||||||
MVMCoreUIUtility.hardcodedString(withKey: "checkbox_action_hint")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Actions
|
// MARK: - Actions
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user