Animate safe area inset changes. Issue #1341

This commit is contained in:
Maurice Parker 2019-11-24 03:42:38 -06:00
parent ab9e8c09ce
commit 7033879704
1 changed files with 6 additions and 0 deletions

View File

@ -140,6 +140,12 @@ class ArticleViewController: UIViewController {
coordinator.isArticleViewControllerPending = false
}
override func viewSafeAreaInsetsDidChange() {
UIView.animate(withDuration: 1) {
self.view.layoutIfNeeded()
}
}
func updateUI() {
guard let article = currentArticle else {