removed accessibility so we can use the VDS version

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-07-30 08:03:26 -05:00
parent 675ba3eaff
commit 2675488ab3

View File

@ -83,28 +83,7 @@ import VDS
self.init(frame: .zero)
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
//--------------------------------------------------