Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试自定义错误状态浮动标签colour和内联错误消息font/colour,但找不到任何选项或在文档中。
colour
font/colour
MD 文档:https ://material.io/develop/ios/components/textfields/
使用MDCTextInputControllerOutlined更改 MDCTextField 的错误颜色。
var textField = MDCTextField() var textInputController = MDCTextInputControllerOutlined(textInput: textField) textInputController.errorColor = .red