Skip to content

Instantly share code, notes, and snippets.

@tsraveling
Created April 25, 2017 17:31
Show Gist options
  • Save tsraveling/dd287d697cec85df24031c1a2426b66c to your computer and use it in GitHub Desktop.
Save tsraveling/dd287d697cec85df24031c1a2426b66c to your computer and use it in GitHub Desktop.
Set UITableView header text color
func tableView(_ tableView: UITableView, willDisplayHeaderView view:UIView, forSection: Int) {
if let headerView = view as? UITableViewHeaderFooterView {
headerView.textLabel?.textColor = .white
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment