Turn off UTIableView lower / upper gradient mask on tvOS?

In tvOS, UITableView applies a beautiful looking gradient mask to the top and bottom of the view. In most cases, this is the desired appearance, but in some cases it is not. Is there a way to conditionally disable this? If there is no official way to do this, has anyone found an indirect way to eliminate this effect?

+7
uitableview tvos
source share
2 answers

You can disable it with the following options:

 self.tableView.maskView = nil; 

Source: How to Remove UISplitViewController Master Navigation Blur Tint

+16
source share

Swift 4 solution based on Jeroen Bakker answer :

 self.tableView.mask = nil 
0
source share

All Articles