1

Trying to customize the error state floating label colour and the inline error message font/colour but cannot find any option or in the docs.

enter image description here

MD Docs: https://material.io/develop/ios/components/textfields/

Bhavik Modi
  • 1,517
  • 14
  • 29
Tal Zion
  • 6,308
  • 3
  • 50
  • 73

1 Answers1

1

Use MDCTextInputControllerOutlined to change the error color of MDCTextField.

var textField = MDCTextField()
var textInputController = MDCTextInputControllerOutlined(textInput: textField)
textInputController.errorColor = .red