|
@@ -53,7 +53,7 @@ class ViewController: UIViewController {
|
|
|
return
|
|
return
|
|
|
} catch {}
|
|
} catch {}
|
|
|
|
|
|
|
|
- if (useClosures) {
|
|
|
|
|
|
|
+ if useClosures {
|
|
|
reachability?.whenReachable = { reachability in
|
|
reachability?.whenReachable = { reachability in
|
|
|
DispatchQueue.main.async {
|
|
DispatchQueue.main.async {
|
|
|
self.updateLabelColourWhenReachable(reachability)
|
|
self.updateLabelColourWhenReachable(reachability)
|