Post

Replies

Boosts

Views

Created

UITextField's text disappeared when focused.
My view has several textfields for register. The problem is when I focus on a textfield to update, the text and the caret in the textfield disappeared (but it still stores the value). The text value only appears after the textfield lost keyboard focus. This error happen with all the devices I have (iPhone 12, iPad), all the simulators I tried. The only thing that works fine is when I using the simulator, I typed in textfield by my Mac physical keyboard instead of simulator's onscreen keyboard. I'm new in iOS and Swift so please can you help me to resolve this. I could provide UI Hierarchy if needed
3
2
2.1k
Jan ’21