Regression: SearchBar text field is positioned asymmetrically

Originator:futuretap
Number:rdar://33143679 Date Originated:05-Juli-2017 11:46 PM
Status:Duplicate/32297465/Closed Resolved:
Product:iOS + SDK Product Version:11.0 beta 2
Classification:UI/Usability Reproducible:Always
 
Summary:
When using the traditional UISearchController from a UITableView.tableHeaderView, the search field is positioned incorrectly when search is activated. This is especially noticeable in landscape. See attached screenshot.


Steps to Reproduce:
Build and run the sample app https://developer.apple.com/library/content/samplecode/TableSearch_UISearchController/Introduction/Intro.html
Activate search in landscape

Expected Results:
Same UI as in iOS 10 with the search field vertically centered in the search bar.

Actual Results:
Search field is shifted several points to the top.

Version:
11.0 beta 2

Notes:
There's no API remedy to fix this. While there's searchFieldBackgroundPositionAdjustment, this doesn't fix the position of the Cancel button.

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!