Digital PCT265 story MVAPCT-272: Make InputEntryField react to viewModel showError changes.
This commit is contained in:
parent
f5f4f02a3d
commit
196a289226
@ -176,7 +176,8 @@ import VDS
|
|||||||
tooltipModel = viewModel.tooltip?.convertToVDSTooltipModel()
|
tooltipModel = viewModel.tooltip?.convertToVDSTooltipModel()
|
||||||
width = viewModel.width
|
width = viewModel.width
|
||||||
transparentBackground = viewModel.transparentBackground
|
transparentBackground = viewModel.transparentBackground
|
||||||
|
showError = viewModel.showError
|
||||||
|
|
||||||
containerView.accessibilityIdentifier = model.accessibilityIdentifier
|
containerView.accessibilityIdentifier = model.accessibilityIdentifier
|
||||||
textField.textAlignment = viewModel.textAlignment
|
textField.textAlignment = viewModel.textAlignment
|
||||||
textField.enableClipboardActions = viewModel.enableClipboardActions
|
textField.enableClipboardActions = viewModel.enableClipboardActions
|
||||||
|
|||||||
@ -112,6 +112,7 @@ import MVMCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Validates all rule groups. Returns if valid
|
/// Validates all rule groups. Returns if valid
|
||||||
|
@discardableResult
|
||||||
public func validate() -> Bool {
|
public func validate() -> Bool {
|
||||||
var valid = true
|
var valid = true
|
||||||
guard let formRules = formRules else { return valid }
|
guard let formRules = formRules else { return valid }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user