Fix empty space that sometimes appeared between the first section and the navigation bar of Feeds
This commit is contained in:
parent
11140f2289
commit
4f401099b6
@ -41,6 +41,12 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||
|
||||
navigationItem.rightBarButtonItem = editButtonItem
|
||||
|
||||
// If you don't have an empty table header, UIKit tries to help out by putting one in for you
|
||||
// that makes a gap between the first section header and the navigation bar
|
||||
var frame = CGRect.zero
|
||||
frame.size.height = .leastNormalMagnitude
|
||||
tableView.tableHeaderView = UIView(frame: frame)
|
||||
|
||||
tableView.register(MasterFeedTableViewSectionHeader.self, forHeaderFooterViewReuseIdentifier: "SectionHeader")
|
||||
tableView.dataSource = dataSource
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user