Interpose HUD while loading products
This commit is contained in:
parent
2bf070650d
commit
e926290abf
|
@ -70,7 +70,12 @@ class DonationViewController: UITableViewController, TableModelHost {
|
||||||
|
|
||||||
let inApp = InAppHelper.shared
|
let inApp = InAppHelper.shared
|
||||||
if inApp.products.isEmpty {
|
if inApp.products.isEmpty {
|
||||||
inApp.requestProducts { self.setProducts($0) }
|
let hud = HUD()
|
||||||
|
hud.show()
|
||||||
|
inApp.requestProducts {
|
||||||
|
hud.hide()
|
||||||
|
self.setProducts($0)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
setProducts(inApp.products)
|
setProducts(inApp.products)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue