UISearchBar's Chinese text is cut off at the beginning

Originator:an00na
Number:rdar://44074097 Date Originated:September 3 2018, 11:34 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:12 beta 12
Classification:UI/Usability Reproducible:Always
 
Area:
UIKit

Summary:
If UISearchBar is used as navigationItem.titleView, its Chinese text is cut off at the beginning after popping back.

It's a regression. It works fine in iOS 11.


Steps to Reproduce:
1. Launch sample app.
2. Type some Chinese in the search bar.
3. Tap Done button to push another view controller.
4. Tap Back to pop back.
5. See the Chinese cut off at the beginning.


Code: https://mega.nz/#!daoRyYTT!tm-weHkSBSkLgafXClhq3T_fVKlV2lkVSKabYH4hWP0

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!