From 443b8aaa621d1d65432a31db02d8ec3d5735e7ff Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Fri, 21 Oct 2016 00:52:18 +0300 Subject: [PATCH] fix table header footer section height --- Sources/TableDirector.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/TableDirector.swift b/Sources/TableDirector.swift index cd45ef5..24dfeb5 100644 --- a/Sources/TableDirector.swift +++ b/Sources/TableDirector.swift @@ -169,13 +169,13 @@ open class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate { open func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { let section = sections[section] - return section.headerHeight ?? section.headerView?.frame.size.height ?? 0 + return section.headerHeight ?? section.headerView?.frame.size.height ?? UITableViewAutomaticDimension } open func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { let section = sections[section] - return section.footerHeight ?? section.footerView?.frame.size.height ?? 0 + return section.footerHeight ?? section.footerView?.frame.size.height ?? UITableViewAutomaticDimension } // MARK: UITableViewDelegate - actions