No way to programmatically scroll away search bar

Originator:futuretap
Number:rdar://33357644 Date Originated:17-Juli-2017 09:46 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.0 beta 3
Classification:UI/Usability Reproducible:Always
 
Summary:
When using the new navigationItem.searchController feature in combination with a table view, there's no way to scroll away the search bar if it was previously visible.

Steps to Reproduce:
Build an run the attached sample project. 
Scroll down to reveal the search bar.
Then tap "Scroll Search Away"

Expected Results:
The search bar should be scrolled away. The called -scrollSearchAway: method sets the table view's contentOffset to (0, -64).

Actual Results:
The table view cells are positioned at the correct content offset. However, the search bar still overlays the first row.

Version:
11.0 beta 3

Notes:
setting the content offset should also affect the position of the search bar.

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!