Delay HUD in purchase until appearance

Fixes vertical centering.
This commit is contained in:
Davide De Rosa 2019-11-04 19:42:59 +01:00
parent f82a84c34b
commit 7251761942
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ class PurchaseViewController: UITableViewController, StrongTableHost {
isLoading = true
tableView.reloadData()
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
let hud = HUD(view: view)
ProductManager.shared.listProducts { [weak self] _ in