Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rockname/b92158dfa205dc5e1e7b9a9291fc20c4 to your computer and use it in GitHub Desktop.

Select an option

Save rockname/b92158dfa205dc5e1e7b9a9291fc20c4 to your computer and use it in GitHub Desktop.
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
switch section {
case 0:
return nil
case 1:
return Category.personal.rawValue
case 2:
return Category.shopping.rawValue
case 3:
return Category.work.rawValue
default:
fatalError()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment