marinofaggiana 4 年之前
父節點
當前提交
fff431b487

+ 2 - 2
Nextcloud.xcodeproj/project.pbxproj

@@ -2836,8 +2836,8 @@
 			isa = XCRemoteSwiftPackageReference;
 			repositoryURL = "https://github.com/nextcloud/ios-communication-library/";
 			requirement = {
-				kind = exactVersion;
-				version = 0.96.0;
+				kind = revision;
+				revision = 67e0049dde7cd36434cf89782b0ba7a62f855c1d;
 			};
 		};
 		F7C4D88B2534887E00C142DA /* XCRemoteSwiftPackageReference "Parchment" */ = {

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

@@ -6,8 +6,8 @@
         "repositoryURL": "https://github.com/Alamofire/Alamofire",
         "state": {
           "branch": null,
-          "revision": "eaf6e622dd41b07b251d8f01752eab31bc811493",
-          "version": "5.4.1"
+          "revision": "f96b619bcb2383b43d898402283924b80e2c4bae",
+          "version": "5.4.3"
         }
       },
       {
@@ -24,8 +24,8 @@
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
           "branch": null,
-          "revision": "fa7fa3f4588cbfb124bbecce8664bbb38d87acf7",
-          "version": "0.96.0"
+          "revision": "67e0049dde7cd36434cf89782b0ba7a62f855c1d",
+          "version": null
         }
       },
       {
@@ -96,8 +96,8 @@
         "repositoryURL": "https://github.com/SwiftyJSON/SwiftyJSON",
         "state": {
           "branch": null,
-          "revision": "2b6054efa051565954e1d2b9da831680026cd768",
-          "version": "5.0.0"
+          "revision": "b3dcd7dbd0d488e1a7077cb33b00f2083e382f07",
+          "version": "5.0.1"
         }
       },
       {

+ 3 - 3
iOSClient/NCGlobal.swift

@@ -66,9 +66,9 @@ class NCGlobal: NSObject {
     let introSignup: Int                            = 1
     
     // Avatar & Preview
-    let avatarSize: CGFloat                         = 512
-    let sizePreview: CGFloat                        = 1024
-    let sizeIcon: CGFloat                           = 512
+    let avatarSize: Int                             = 512
+    let sizePreview: Int                            = 1024
+    let sizeIcon: Int                               = 512
     
     // E2EE
     let e2eeMaxFileSize: UInt64                     = 500000000     // 500 MB

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImage.swift

@@ -322,7 +322,7 @@ class NCViewerImage: UIViewController {
                 image = UIImage.animatedImage(withAnimatedGIFURL: URL(fileURLWithPath: imagePath))
             } else if ext == "SVG" {
                 if let svgImage = SVGKImage(contentsOfFile: imagePath) {
-                    let scale = svgImage.size.height / svgImage.size.width
+                    let scale = Int(svgImage.size.height / svgImage.size.width)
                     svgImage.size = CGSize(width: NCGlobal.shared.sizePreview, height: (NCGlobal.shared.sizePreview * scale))
                     if let image = svgImage.uiImage {
                         if !FileManager().fileExists(atPath: previewPath) {