diff --git a/CHANGELOG.md b/CHANGELOG.md index 807dc0d..e162508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 2.0.1 (work in progress) - Update `AcknowListViewController` to make initializers available with Objective-C +- Fix header/footer layout when resizing `AcknowListViewController` ## 2.0.0 (15 March 2021) diff --git a/Sources/AcknowList/AcknowListViewController.swift b/Sources/AcknowList/AcknowListViewController.swift index e06844b..78e4100 100644 --- a/Sources/AcknowList/AcknowListViewController.swift +++ b/Sources/AcknowList/AcknowListViewController.swift @@ -267,6 +267,15 @@ open class AcknowListViewController: UITableViewController { } } + open override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { + super.viewWillTransition(to: size, with: coordinator) + + coordinator.animate(alongsideTransition: nil) { _ in + self.configureHeaderView() + self.configureFooterView() + } + } + // MARK: - Actions /**