Interpose HUD while loading products

This commit is contained in:
Davide De Rosa 2019-04-07 12:53:30 +02:00
parent 2bf070650d
commit e926290abf
1 changed files with 6 additions and 1 deletions

View File

@ -70,7 +70,12 @@ class DonationViewController: UITableViewController, TableModelHost {
let inApp = InAppHelper.shared
if inApp.products.isEmpty {
inApp.requestProducts { self.setProducts($0) }
let hud = HUD()
hud.show()
inApp.requestProducts {
hud.hide()
self.setProducts($0)
}
} else {
setProducts(inApp.products)
}