removed code
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
57bec1ecec
commit
9606b914cc
@ -31,25 +31,6 @@ open class RadioBoxes: VDS.RadioBoxGroup, VDSMoleculeViewProtocol {
|
|||||||
public var boxes: [RadioBoxModel]?
|
public var boxes: [RadioBoxModel]?
|
||||||
public weak var radioDelegate: RadioBoxSelectionDelegate?
|
public weak var radioDelegate: RadioBoxSelectionDelegate?
|
||||||
|
|
||||||
// TODO: this matches the current accessibility however not what was passed by Barbara's team.
|
|
||||||
// open override var items: [RadioBoxItem] {
|
|
||||||
// didSet {
|
|
||||||
// let total = items.count
|
|
||||||
// for (index, radioBoxItem) in items.enumerated() {
|
|
||||||
// radioBoxItem.selectorView.bridge_accessibilityValueBlock = {
|
|
||||||
// guard let format = MVMCoreUIUtility.hardcodedString(withKey: "index_string_of_total"),
|
|
||||||
// let indexString = MVMCoreUIUtility.getOrdinalString(forIndex: NSNumber(value: index + 1)) else { return ""}
|
|
||||||
// return String(format: format, indexString, total)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
open override func setup() {
|
|
||||||
super.setup()
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
// MARK: - MoleculeViewProtocol
|
// MARK: - MoleculeViewProtocol
|
||||||
public func viewModelDidUpdate() {
|
public func viewModelDidUpdate() {
|
||||||
boxes = viewModel.boxes
|
boxes = viewModel.boxes
|
||||||
@ -66,7 +47,7 @@ open class RadioBoxes: VDS.RadioBoxGroup, VDSMoleculeViewProtocol {
|
|||||||
|
|
||||||
// since the boxes has the state being tracked, we need to update the values here.
|
// since the boxes has the state being tracked, we need to update the values here.
|
||||||
if let index = items.firstIndex(where: {$0 === selectedControl}), let selectedBox = boxes?[index] {
|
if let index = items.firstIndex(where: {$0 === selectedControl}), let selectedBox = boxes?[index] {
|
||||||
boxes?.forEach {$0.selected = false }
|
boxes?.forEach { $0.selected = false }
|
||||||
selectedBox.selected = true
|
selectedBox.selected = true
|
||||||
_ = FormValidator.validate(delegate: delegateObject?.formHolderDelegate)
|
_ = FormValidator.validate(delegate: delegateObject?.formHolderDelegate)
|
||||||
radioDelegate?.selected(radioBox: selectedBox)
|
radioDelegate?.selected(radioBox: selectedBox)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user