Skip to content

Commit

Permalink
Fix header/footer layout when building with iOS 14 SDK #68
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Sep 17, 2020
1 parent 467c4cb commit fe191c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.9.5 (17 September 2020)

- Fix header/footer layout when building with iOS 14 SDK


## 1.9.4 (15 April 2020)

- Fix `AcknowListViewController` initializers access level, by Kevin Mitchell Jr (@klmitchell2)
Expand Down
6 changes: 3 additions & 3 deletions Source/AcknowListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,6 @@ open class AcknowListViewController: UITableViewController {
let identifier = String(describing: UITableViewCell.self)
tableView.register(UITableViewCell.classForCoder(), forCellReuseIdentifier: identifier)

configureHeaderView()
configureFooterView()

if let navigationController = self.navigationController {
if presentingViewController != nil && navigationController.viewControllers.first == self {
let item = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(AcknowListViewController.dismissViewController(_:)))
Expand All @@ -252,6 +249,9 @@ open class AcknowListViewController: UITableViewController {
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

configureHeaderView()
configureFooterView()

if let indexPath = tableView.indexPathForSelectedRow {
tableView.deselectRow(at: indexPath, animated: animated)
}
Expand Down

0 comments on commit fe191c7

Please sign in to comment.