iOS: wrong UITextField alignment with arabic keyboard
| Originator: | janrose.1986 | ||
| Number: | rdar://28168920 | Date Originated: | 06-Sep-2016 01:23 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 10 Beta 8, iOS 9.3.5 |
| Classification: | UI | Reproducible: | always |
Area: Keyboard Summary: Given an application which is not localized for arabic language including a UITextField with NSTextAlignmentNatural: System language is set to arabic, currently selected keyboard is arabic. Tapping into the UITextField displays the arabic keyboard but the cursor is aligned to left to UITextField as it would be normal for a keyboard with language writing direction Left-To-Right. Instead it should be aligned to right of UITextField because arabic keyboard is Right-To-Left. If the current keyboard is english and you switch to the arabic keyboard after the keyboard was opened the cursor alignment switches from left of UITextField to right of UITextField as expected! Steps to Reproduce: 1. Enable arabic keyboard in addition to some keyboard with left to right writing direction (i.e. english) in iOS system settings 2. Use 'UIKit Catalog' demo app and adapt UITextField with natural alignment in storyboard 3. Run UIKit Catalog and go to TextFields section 4. Tap into textfield Expected Results: Arabic keyboard opens and cursor is aligned to right of textfield Actual Results: arabic keyboard opens but cursor is left-aligned. Only switching to other keyboard and back to arabic keyboard triggers the right align. Version: iOS 10 Beta 8 Notes: Configuration: iPhone 6s
Comments
Please note: 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!