Created
August 17, 2017 08:33
-
-
Save Dimillian/c6ca2f6067d069e3be1886ada7860c13 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, viewForHeaderInSection section: Int) -> UIView? { | |
if section <= Sections.count() - Sections.feedOffset() { | |
let sectionSwitch = Sections(rawValue: section)! | |
return sectionSwitch.headerView(controller: self) | |
} | |
switch filter { | |
case .books: | |
return MyBooksTableProvider.Sections(rawValue: section - 2)!.headerView() | |
default: | |
return nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment