From fea48e7ab9ab72e0cc65ccac5c77f364c5192162 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 22 Nov 2019 15:11:15 -0600 Subject: [PATCH] Increase inspector header padding. Issue #1324 --- iOS/Account/FeedbinAccountViewController.swift | 2 +- iOS/Account/LocalAccountViewController.swift | 2 +- iOS/Inspector/AccountInspectorViewController.swift | 2 +- iOS/Inspector/WebFeedInspectorViewController.swift | 2 +- iOS/UIKit Extensions/ImageHeaderView.swift | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/iOS/Account/FeedbinAccountViewController.swift b/iOS/Account/FeedbinAccountViewController.swift index 71f4fce38..45fcb8237 100644 --- a/iOS/Account/FeedbinAccountViewController.swift +++ b/iOS/Account/FeedbinAccountViewController.swift @@ -44,7 +44,7 @@ class FeedbinAccountViewController: UITableViewController { } override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { - return section == 0 ? 64.0 : super.tableView(tableView, heightForHeaderInSection: section) + return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section) } override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { diff --git a/iOS/Account/LocalAccountViewController.swift b/iOS/Account/LocalAccountViewController.swift index 6aed1eddf..be0c1596d 100644 --- a/iOS/Account/LocalAccountViewController.swift +++ b/iOS/Account/LocalAccountViewController.swift @@ -36,7 +36,7 @@ class LocalAccountViewController: UITableViewController { } override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { - return section == 0 ? 64.0 : super.tableView(tableView, heightForHeaderInSection: section) + return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section) } override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { diff --git a/iOS/Inspector/AccountInspectorViewController.swift b/iOS/Inspector/AccountInspectorViewController.swift index cc0095643..5f56a3605 100644 --- a/iOS/Inspector/AccountInspectorViewController.swift +++ b/iOS/Inspector/AccountInspectorViewController.swift @@ -128,7 +128,7 @@ extension AccountInspectorViewController { } override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { - return section == 0 ? 64.0 : super.tableView(tableView, heightForHeaderInSection: section) + return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section) } override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { diff --git a/iOS/Inspector/WebFeedInspectorViewController.swift b/iOS/Inspector/WebFeedInspectorViewController.swift index ff790e84f..00066f4de 100644 --- a/iOS/Inspector/WebFeedInspectorViewController.swift +++ b/iOS/Inspector/WebFeedInspectorViewController.swift @@ -78,7 +78,7 @@ class WebFeedInspectorViewController: UITableViewController { extension WebFeedInspectorViewController { override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { - return section == 0 ? 64.0 : super.tableView(tableView, heightForHeaderInSection: section) + return section == 0 ? ImageHeaderView.rowHeight : super.tableView(tableView, heightForHeaderInSection: section) } override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { diff --git a/iOS/UIKit Extensions/ImageHeaderView.swift b/iOS/UIKit Extensions/ImageHeaderView.swift index 3c26eda89..2e8a25420 100644 --- a/iOS/UIKit Extensions/ImageHeaderView.swift +++ b/iOS/UIKit Extensions/ImageHeaderView.swift @@ -10,6 +10,8 @@ import UIKit class ImageHeaderView: UITableViewHeaderFooterView { + static let rowHeight = CGFloat(integerLiteral: 88) + var imageView = UIImageView() override init(reuseIdentifier: String?) {