Use loading.dots key to show loading message

pull/2/head
Miachel Scoff 7 years ago
parent 816e2de6f4
commit f24faffbff
  1. 5
      Trust/Extensions/UIViewController.swift

@ -43,7 +43,10 @@ extension UIViewController {
self.present(alertController, animated: true, completion: nil) self.present(alertController, animated: true, completion: nil)
} }
func displayLoading(text: String = NSLocalizedString("Loading...", value: "Loading...", comment: ""), animated: Bool = true) { func displayLoading(
text: String = String(format: NSLocalizedString("loading.dots", value: "Loading %@", comment: ""), "..."),
animated: Bool = true
) {
let hud = MBProgressHUD.showAdded(to: self.view, animated: animated) let hud = MBProgressHUD.showAdded(to: self.view, animated: animated)
hud.label.text = text hud.label.text = text
} }

Loading…
Cancel
Save