In a table view I'm hiding separator for empty cells only by following code which does hide separator for empty cells but it also doesn't show separator at all. I can't figure out why, any clue?
Alternatively is there any other way to hide separator for empty cells?
There is nothing wrong with the following code, it does work as intended on other VCs but on this particular VC it doesn't work as intended. I've checked storyboard and compared working and non working VCs. Both have exactly same attributes for the tableview.
override func viewDidLoad() {
super.viewDidLoad()
tableView.tableFooterView = UIView()
}