diff --git a/appdb/Tabs/Downloads/Downloading/IPAWebViewController.swift b/appdb/Tabs/Downloads/Downloading/IPAWebViewController.swift index 6bd504b1..3e448b4c 100644 --- a/appdb/Tabs/Downloads/Downloading/IPAWebViewController.swift +++ b/appdb/Tabs/Downloads/Downloading/IPAWebViewController.swift @@ -130,6 +130,7 @@ class IPAWebViewController: UIViewController, WKNavigationDelegate, WKUIDelegate super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.progressView != nil else { return } self.setConstraints() }, completion: nil) } diff --git a/appdb/Tabs/Downloads/Downloads.swift b/appdb/Tabs/Downloads/Downloads.swift index bb6b6cb3..be6a4c70 100644 --- a/appdb/Tabs/Downloads/Downloads.swift +++ b/appdb/Tabs/Downloads/Downloads.swift @@ -115,6 +115,7 @@ class Downloads: UIViewController { super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.headerView != nil else { return } self.setConstraints() }, completion: nil) } diff --git a/appdb/Tabs/Featured/Categories/Categories.swift b/appdb/Tabs/Featured/Categories/Categories.swift index 179ebcab..bda44475 100644 --- a/appdb/Tabs/Featured/Categories/Categories.swift +++ b/appdb/Tabs/Featured/Categories/Categories.swift @@ -155,6 +155,7 @@ class Categories: UIViewController, UITableViewDelegate, UITableViewDataSource { super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.tableView != nil else { return } self.setConstraints() }, completion: nil) } diff --git a/appdb/Tabs/Featured/Details/Details+Extension.swift b/appdb/Tabs/Featured/Details/Details+Extension.swift index b9ebec7d..bb2a4ac3 100644 --- a/appdb/Tabs/Featured/Details/Details+Extension.swift +++ b/appdb/Tabs/Featured/Details/Details+Extension.swift @@ -194,6 +194,7 @@ extension Details { super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.tableView != nil else { return } if self.indexForSegment != .download { self.tableView.reloadData() } }, completion: nil) } diff --git a/appdb/Tabs/Updates/Ignored.swift b/appdb/Tabs/Updates/Ignored.swift index f25c1251..168e4f23 100644 --- a/appdb/Tabs/Updates/Ignored.swift +++ b/appdb/Tabs/Updates/Ignored.swift @@ -114,6 +114,7 @@ class Ignored: LoadingTableView { super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.tableView != nil else { return } if !self.apps.isEmpty { self.tableView.reloadData() } }, completion: nil) } diff --git a/appdb/Tabs/Updates/Updates.swift b/appdb/Tabs/Updates/Updates.swift index ada369dd..8827b4f8 100644 --- a/appdb/Tabs/Updates/Updates.swift +++ b/appdb/Tabs/Updates/Updates.swift @@ -269,6 +269,7 @@ class Updates: LoadingTableView { super.viewWillTransition(to: size, with: coordinator) coordinator.animate(alongsideTransition: { (_: UIViewControllerTransitionCoordinatorContext!) -> Void in + guard self.tableView != nil else { return } if self.updateableApps.count + self.nonUpdateableApps.count > 0 { self.tableView.reloadData() } }, completion: nil) }