Publicize _hidesShadow and _shadowAlpha on UINavigationBar

Originator:stephen
Number:rdar://35051245 Date Originated:October 18 2017, 3:22 PM
Status:Open Resolved:No
Product:UIKit Product Version:iOS 11.1
Classification:Suggestion Reproducible:Always
 
Area:
UIKit

Two private properties: _hidesShadow and _shadowAlpha exist on UINavigationBar and work to control the border/shadow visible at the bottom of the UINavigationBar.

Both of these properties work perfectly (with the exception of _shadowAlpha in certain circumstances due to radar://35051117) and would be extremely helpful for developers looking to customise the look of their application further.

I suggest that these properties are publicized so that the "hack" of setting the backgroundImage and shadowImage of the UINavigationBar to a blank image no longer be necessary on most occasions. A shadowTint property would also be a nice addition.

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!