diff --git a/Sources/OAuthSwiftHTTPRequest.swift b/Sources/OAuthSwiftHTTPRequest.swift index 61f5f52d..00fe5a44 100644 --- a/Sources/OAuthSwiftHTTPRequest.swift +++ b/Sources/OAuthSwiftHTTPRequest.swift @@ -104,7 +104,9 @@ open class OAuthSwiftHTTPRequest: NSObject, OAuthSwiftRequestHandle { #if os(iOS) #if !OAUTH_APP_EXTENSIONS + #if !targetEnvironment(macCatalyst) UIApplication.shared.isNetworkActivityIndicatorVisible = self.config.sessionFactory.isNetworkActivityIndicatorVisible + #endif #endif #endif } @@ -114,9 +116,11 @@ open class OAuthSwiftHTTPRequest: NSObject, OAuthSwiftRequestHandle { public static func completionHandler(completionHandler completion: CompletionHandler?, request: URLRequest, data: Data?, resp: URLResponse?, error: Error?) { #if os(iOS) #if !OAUTH_APP_EXTENSIONS + #if !targetEnvironment(macCatalyst) UIApplication.shared.isNetworkActivityIndicatorVisible = false #endif #endif + #endif // MARK: failure error returned by server if let error = error {