Attached UISearchBar doesn't accept backgroundImage

Originator:futuretap
Number:rdar://33145707 Date Originated:06-Juli-2017 01:03 AM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.0 beta 2
Classification:UI/Usability Reproducible:Always
 
Summary:
When using the new method to attach search bars by setting navigationItem.searchController a custom background image on the navigation bar is not extended to the search bar.

Steps to Reproduce:
Build and run the attached sample project. Activate search by scrolling down.

Expected Results:
the search bar background should be identical to the navigation bar background

Actual Results:
The attached search bar seems to ignore custom backgrounds. Instead, the navigationBar barTintColor is applied to the search bar.

Version:
11.0 beta 2

Notes:

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!