iOS 11 Regression: UITextField selection options menu is dismissed when another UITextField.text is updated

Number:rdar://36418953 Date Originated:January 10 2018, 11:33 PM
Status: Resolved:
Product:iOS UIKit Product Version:11.2.1 (15C153)
Classification: Reproducible:Always

UITextField selection options menu is dismissed when another UITextField text property is updated.

Steps to Reproduce:
1. Create iPhone/iPad UIView with 2 UITextFields
2. Implement logic responsible for updating second UITextField regularly (i.e by network, timer etc.)
3. Run the application on iOS 11 (both iPhone and iPads are affected)
4. Set some text and select it in the first UITextField to see selection options menu and wait for the second UITextField text update.
5. Once the second UITextField gets updated, selection menu will disappear.

Expected Results:
UITextField text selection menu stays on the screen till the user takes an action to dismiss it.

Actual Results:
UITextField text selection menu is dismissed after another UITextField text property gets updated.

iOS 11.2.1 (15C153)

Tested on multiple iPhone and iPad versions, built with Xcode 9.2 and 8.3 - the issue was 100% reproducible on iOS 11. The functionality works fine on iOS 7, 8, 9 and 10.


Demo code showing the issue is here:

By marcin.iwanicki at Jan. 11, 2018, midnight (reply...)

(marcin.iwanicki )

By almsafrnies at Jan. 12, 2018, 9:36 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at 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!