Created
December 3, 2018 08:46
-
-
Save rockname/b92158dfa205dc5e1e7b9a9291fc20c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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