updated for isRequired

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-13 14:55:15 -05:00
parent 090eadb626
commit 7d263c62cb

View File

@ -53,11 +53,11 @@ class DatePickerViewController: BaseViewController<DatePicker> {
}
requiredSwitch.onChange = { [weak self] sender in
self?.component.required = sender.isOn
self?.component.isRequired = sender.isOn
}
readonlySwitch.onChange = { [weak self] sender in
self?.component.readOnly = sender.isOn
self?.component.isReadOnly = sender.isOn
}
transparentBgSwitch.onChange = { [weak self] sender in
@ -119,7 +119,7 @@ class DatePickerViewController: BaseViewController<DatePicker> {
//setup UI
disabledSwitch.isOn = !component.isEnabled
requiredSwitch.isOn = component.required
requiredSwitch.isOn = component.isRequired
surfacePickerSelectorView.text = component.surface.rawValue
labelTextField.text = component.labelText
helperTextField.text = component.helperText