WireGuardApp: Refactor indicator initialization
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
parent
44704ba892
commit
761f635e16
|
@ -32,15 +32,14 @@ class TunnelsListTableViewController: UIViewController {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
let busyIndicator: UIActivityIndicatorView = {
|
let busyIndicator: UIActivityIndicatorView = {
|
||||||
|
let busyIndicator: UIActivityIndicatorView
|
||||||
if #available(iOS 13.0, *) {
|
if #available(iOS 13.0, *) {
|
||||||
let busyIndicator = UIActivityIndicatorView(style: .medium)
|
busyIndicator = UIActivityIndicatorView(style: .medium)
|
||||||
busyIndicator.hidesWhenStopped = true
|
|
||||||
return busyIndicator
|
|
||||||
} else {
|
} else {
|
||||||
let busyIndicator = UIActivityIndicatorView(style: .gray)
|
busyIndicator = UIActivityIndicatorView(style: .gray)
|
||||||
busyIndicator.hidesWhenStopped = true
|
|
||||||
return busyIndicator
|
|
||||||
}
|
}
|
||||||
|
busyIndicator.hidesWhenStopped = true
|
||||||
|
return busyIndicator
|
||||||
}()
|
}()
|
||||||
|
|
||||||
var detailDisplayedTunnel: TunnelContainer?
|
var detailDisplayedTunnel: TunnelContainer?
|
||||||
|
|
Loading…
Reference in New Issue