From 5460d041cee39e25a09c0d7dd1e8827bb4272f68 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 1 Jun 2020 10:24:07 +0200 Subject: [PATCH] Set proper header/footer height in organizer --- .../Scenes/Organizer/OrganizerViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift index ea25d7ef..8c9be1b3 100644 --- a/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/OrganizerViewController.swift @@ -449,6 +449,14 @@ extension OrganizerViewController { return model.footer(forSection: section) } + override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { + return model.headerHeight(for: section) + } + + override func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { + return model.footerHeight(for: section) + } + override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return model.numberOfRows(forSection: section) }