UITableView.scrollToRow(at:at:animated) on initial load does not account for sectionHeader custom sizing

Number:rdar://FB9860630 Date Originated:01/27/2022
Status:open Resolved:
Product:UIKit Product Version:
Classification: Reproducible:
If tableView.scrollToRow() is called in viewDidAppear to offscreen row with heightForHeaderInSection greater than the default header height (>28 in my testing), the sectionHeader for previous section is displayed vs current section. If sectionHeaderHeight is less than or equal to the default, then correct header is displayed.


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!