OK, I know that this has been asked previously, so please forgive me for asking again. It just seems like there has got to be an easier way to do this.
Is there a \
we can change the header background color like this :
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int){ let tableHeader = view as! UITableViewHeaderFooterView tableHeader.backgroundView?.backgroundColor = UIColor.white }