Allow tinting of the UIScrollView indicators with UIColor

Originator:moshefromsinai
Number:rdar://25391823 Date Originated:March 28, 2016
Status:Open Resolved:No
Product:iOS Product Version:9.3
Classification:Enhancement Reproducible:N/A
 
Summary:
The UIScrollView supports three default styles. Since the UIScrollView indicators are UIImages under the hood, it's possible to tint them by setting the image mode to UIImageModeAlwaysTemplate and applying a tintColor to the scroll indicator view/image view.

This is a hack, involving view hierarchy traversal, and isn't necessarily safe for future SDK releases.

That said, tinting the scroll bars is a really common area for subtle design  and it would be really awesome if this were made official.

Steps to Reproduce:
1. Create a UIScrollView (or subclass)
2. Set its tintColor
3. Scroll so that the indicators appear.

Expected Results:
The scroll view indicators should match the tintColor of the UIScrollView.

Actual Results:
They remain black or white, depending on the indicatorStyle property of the UIScrollView.

Version:
iOS 9.3

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!