I am using Material Textfield for my project,
@IBOutlet weak var cellTextField: MDCTextField!
func setUpCellUI() {
cellTextField.clearButton.isHidden = true
cellTextField.font = CSFont.fontWithName(.Medium, size: 17)
cellTextField.textColor = UIColor.contSyncTextLightColor()
textFieldControllerFloating = MDCTextInputControllerLegacyDefault(textInput: cellTextField)
}
and error I am setting as
self.textFieldControllerFloating.setErrorText(error.errorString, errorAccessibilityValue: nil)
if error message is long text is going out of the screen, How can I fix this ? See the following image.