Skip to content

Commit

Permalink
Remove network indicator for macCatalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
phimage committed Nov 1, 2019
1 parent b40aebe commit 04199eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/OAuthSwiftHTTPRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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 {
Expand Down

0 comments on commit 04199eb

Please sign in to comment.