Skyscanner / SkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Apache License 2.0
4.09k stars 540 forks source link

Wrong behaviour on error state. #334

Open alexeybolv opened 2 years ago

alexeybolv commented 2 years ago

Report

What did you do?

ℹ I have added latest version and try to use textfield with validation and have problems with error colors.

What did you expect to happen?

Expect to have error color on title and text.

What happened instead?

Only title was colored with error color, but text has black color. It looks like different symbols, eg. "@" "," "." break some logic with colors.

Снимок экрана 2021-11-18 в 23 54 00

Environment

ℹ Please fill in this section with information about your environment

Xcode Version: 13.1 SkyFloatingLabelTextField Version: 4.0 Deployment Target: iOS 15+ Base SDK: Method of Integration: CocoaPods

Project that demonstrates the issue

ℹ Please link to a project we can download that reproduces the issue if applicable.

Here is small video that shows wrong behaviour. https://user-images.githubusercontent.com/14241858/142494756-d89314b8-6d9e-436e-b061-984ac865432d.mov

Here is the code, where I change error message, there is no other code that work with textfield.

Снимок экрана 2021-11-18 в 23 52 24
ami-aman commented 2 years ago

@alexeybolv It shows the same behaviour for me as well but looks like it is an issue with the OS. Check this for a solution which worked for me, if may be it could help you as well.

alexeybolv commented 2 years ago

@ami-aman thank you, this workaround works for me! Hope, it will be fixed in next iOS versions.