Digital ACT-191 ONEAPP-9311 story: checking type for defaultValue and using it.

This commit is contained in:
Vasavi Kanamarlapudi 2024-07-30 14:55:48 +05:30
parent 81f29f3558
commit a85a675214

View File

@ -226,7 +226,9 @@ class InputStepperViewController: BaseViewController<InputStepper> {
errorTextField.text = component.errorText errorTextField.text = component.errorText
helperTextField.text = component.helperText helperTextField.text = component.helperText
labelTextField.text = component.labelText labelTextField.text = component.labelText
defaultValueField.text = String(component.defaultValue) if let defaultVal = component.defaultValue as? Int {
defaultValueField.text = String(defaultVal)
}
minValueTextField.text = String(component.minValue ?? 0) minValueTextField.text = String(component.minValue ?? 0)
maxValueTextField.text = String(component.maxValue ?? 99) maxValueTextField.text = String(component.maxValue ?? 99)
component.size = .large component.size = .large