|
|
|
@ -133,6 +133,12 @@ final class MainAppContext: AppContext {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func setStatusBarHidden(_ isHidden: Bool, animated isAnimated: Bool) {
|
|
|
|
|
guard Thread.isMainThread else {
|
|
|
|
|
return DispatchQueue.main.async { [weak self] in
|
|
|
|
|
self?.setStatusBarHidden(isHidden, animated: isAnimated)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UIApplication.shared.setStatusBarHidden(isHidden, with: (isAnimated ? .slide : .none))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -177,6 +183,12 @@ final class MainAppContext: AppContext {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func setNetworkActivityIndicatorVisible(_ value: Bool) {
|
|
|
|
|
guard Thread.isMainThread else {
|
|
|
|
|
return DispatchQueue.main.async { [weak self] in
|
|
|
|
|
self?.setNetworkActivityIndicatorVisible(value)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
UIApplication.shared.isNetworkActivityIndicatorVisible = value
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|