material-components-ios-codelabs
material-components-ios-codelabs copied to clipboard
Password validation error doesn't disappear
The validation for the password field needs an else block to clear the error if it was in the error state already.
if (...) { passwordTextFieldController.setErrorText("Password is too short", errorAccessibilityValue: nil) } else { passwordTextFieldController.setErrorText(nil, errorAccessibilityValue: nil) }