From e926290abf9b1d89c4887a49ea8b3a101aec2679 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 7 Apr 2019 12:53:30 +0200 Subject: [PATCH] Interpose HUD while loading products --- .../Scenes/Organizer/DonationViewController.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Passepartout-iOS/Scenes/Organizer/DonationViewController.swift b/Passepartout-iOS/Scenes/Organizer/DonationViewController.swift index eadc62d3..60665490 100644 --- a/Passepartout-iOS/Scenes/Organizer/DonationViewController.swift +++ b/Passepartout-iOS/Scenes/Organizer/DonationViewController.swift @@ -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) }