Digital ACT-191 ONEAPP-9311 story: checking type for defaultValue and using it.
This commit is contained in:
parent
81f29f3558
commit
a85a675214
@ -226,7 +226,9 @@ class InputStepperViewController: BaseViewController<InputStepper> {
|
||||
errorTextField.text = component.errorText
|
||||
helperTextField.text = component.helperText
|
||||
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)
|
||||
maxValueTextField.text = String(component.maxValue ?? 99)
|
||||
component.size = .large
|
||||
|
||||
Loading…
Reference in New Issue
Block a user