Search Controller scrolling stutters

Originator:futuretap
Number:rdar://33360979 Date Originated:17-Juli-2017 11:46 PM
Status:Duplicate/32163942/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 and searchController.dimsBackgroundDuringPresentation=NO, the search table view scrolling is not perfect.

Steps to Reproduce:
Build and run the attached sample project.
Scroll to the top to reveal the search bar and tap it.
Now scroll up and down.
Watch the scrollIndicator while scrolling to the top.
Watch the contentOffset while scrolling to the bottom.

Expected Results:
Smooth scrollIndicator and content offset animation.

Actual Results:
1. When scrolling to the top, the scrollIndicatorInsets seem to be changed when the top of the page is almost reached. So the indicators are not animated smoothly.
2. When scrolling to the bottom, the contentOffset is set back one row after the scrolling deceleration ends.
3. The content inset is wrong and leaves one empty row above the keyboard. (Note, I didn't specify any custom insets. So this is the default behavior.)

Version:
11.0 beta 3

Notes:
See the screen video within the sample project folder.

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!