Skip to content

Commit

Permalink
prevent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
nedley committed Oct 1, 2019
1 parent 2902374 commit 942ae07
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions appdb/Tabs/Downloads/Downloads.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions appdb/Tabs/Featured/Categories/Categories.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions appdb/Tabs/Featured/Details/Details+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions appdb/Tabs/Updates/Ignored.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions appdb/Tabs/Updates/Updates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 942ae07

Please sign in to comment.