Skip to content

Commit

Permalink
Merge pull request #82 from vtourraine/layout-formsheet-presentation
Browse files Browse the repository at this point in the history
Fix header/footer resizing
  • Loading branch information
vtourraine authored Mar 24, 2021
2 parents 6d8d617 + 7b138be commit 8317486
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions Sources/AcknowList/AcknowListViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 8317486

Please sign in to comment.