How do I remove the vertical glowing scroll indicators in a TableView (or to change it's color) ?
Since UITableView is a subclass of UIScrollView I've been trying to find the cause behind it. I've attempted to disable the scrolling indicators via the storyboard and via code like so:
//Where self is my TableViewController
self.tableView.showsVerticalScrollIndicator = false
but they have changed nothing. I've already gone in the storyboard and changed any default color to black. That didn't work either.
Image with red arrows pointing to the glowing white scroll indicator that I would like to remove OR to change it's color.
I've attempted to modify:
self.tableView.contentInsets
self.tableView.scrollIndicatorInsets
self.tableView.indicatorStyle = UIScrollViewIndicatorStyle.black
Probably, what are you looking for is the self.tableView.mask View property:
An optional view whose alpha channel is used to mask a view’s content. The view’s alpha channel determines how much of the view’s content and background shows through. Fully or partially opaque pixels allow the underlying content to show through but fully transparent pixels block that content.
As the documentation says, it is an optional view, just set it to nil:
self.tableView.mask = nil
Output:
Before setting mask view to nil should be like:

After setting mask view to nil should be like:

Aside bar note:
Comparing with iOS, it seems that the mask view is nil -by default-, but not with tvOS. I tried both of them and the log outputs were:
For iOS:
nil
For tvOS:
Optional(<_UIScrollViewGradientMaskView: 0x7ff078c037f0; frame = (-90 -40; 1101 1200); userInteractionEnabled = NO; layer = >)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With