UITextField cursor jumps to the left unexpectedly when right aligned
||Date Originated:||15-Feb-2017 11:13 AM|
||Product Version:||Xcode 8.2.1|
When using a UITextField that is right aligned, the cursor can sometimes jump to the left of the field unexpectedly.
I have attached a sample project that you can run to reproduce the problem easily.
Steps to Reproduce:
1. Create a UITextField with fixed width and that is right aligned
2. Tap into the text field
3. Type spaces without typing any other character
The spaces push the cursor to left
The cursor jumps to the left of the text field and no spaces are shown
Xcode 8.2.1 (8C1002)
Simulator iPhone 6s - iOS 10.2 (14C89)
Device iPhone SE 10.2.1 (14D27)
I have attached a sample project which will let you examine how it was set up. Just open the project and run and you can instantly repo!
I have seen it in the simulator and on device.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!