diff --git a/EmpowerPlant/Base.lproj/Main.storyboard b/EmpowerPlant/Base.lproj/Main.storyboard index 998cc56..03e65af 100644 --- a/EmpowerPlant/Base.lproj/Main.storyboard +++ b/EmpowerPlant/Base.lproj/Main.storyboard @@ -61,7 +61,7 @@ - + @@ -69,137 +69,153 @@ - + - - + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -208,17 +224,23 @@ - - - - + + + + + + - + + + + + diff --git a/EmpowerPlant/ListAppViewController.swift b/EmpowerPlant/ListAppViewController.swift index 475c26e..620a031 100644 --- a/EmpowerPlant/ListAppViewController.swift +++ b/EmpowerPlant/ListAppViewController.swift @@ -253,4 +253,27 @@ class ListAppViewController: UIViewController { @IBAction func close(_ sender: Any) { SentrySDK.close() } + + @IBOutlet weak var progressIndicator: UIProgressView! + @IBAction func jsonMainThread(_ sender: Any) { + // build up a huge JSON structure + progressIndicator.isHidden = false + DispatchQueue.global(qos: .utility).async { + var dict = [String: String]() + let limit = 1_000_000 + for i in 0..