marinofaggiana 4 年之前
父節點
當前提交
01d6c83933

+ 1 - 1
Nextcloud.xcodeproj/project.pbxproj

@@ -2879,7 +2879,7 @@
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
 				kind = exactVersion;
-				version = 0.96.0;
+				version = 0.97.0;
 			};
 		};
 		F7C4D88B2534887E00C142DA /* XCRemoteSwiftPackageReference "Parchment" */ = {

+ 2 - 2
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -105,8 +105,8 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "fa7fa3f4588cbfb124bbecce8664bbb38d87acf7",
-          "version": "0.96.0"
+          "revision": "e26939278c34dbe66a5a25963906651570b51fbe",
+          "version": "0.97.0"
         }
       },
       {

+ 10 - 6
iOSClient/Utility/NCUtility.swift

@@ -486,17 +486,21 @@ class NCUtility: NSObject {
         viewActivityIndicator?.layer.masksToBounds = true
         viewActivityIndicator?.backgroundColor = .clear
 
+        #if !EXTENSION
         if backgroundView == nil {
             if let window = UIApplication.shared.keyWindow {
-                viewBackgroundActivityIndicator?.removeFromSuperview()
-                viewBackgroundActivityIndicator = NCViewActivityIndicator(frame: window.bounds)
-                window.addSubview(viewBackgroundActivityIndicator!)
-                viewBackgroundActivityIndicator?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
-                viewBackgroundActivityIndicator?.backgroundColor = .clear
+                self.viewBackgroundActivityIndicator?.removeFromSuperview()
+                self.viewBackgroundActivityIndicator = NCViewActivityIndicator(frame: window.bounds)
+                window.addSubview(self.viewBackgroundActivityIndicator!)
+                self.viewBackgroundActivityIndicator?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
+                self.viewBackgroundActivityIndicator?.backgroundColor = .clear
             }
         } else {
-            viewBackgroundActivityIndicator = backgroundView
+            self.viewBackgroundActivityIndicator = backgroundView
         }
+        #else
+        self.viewBackgroundActivityIndicator = backgroundView
+        #endif
         
         // VIEW ACTIVITY INDICATOR