瀏覽代碼

fix called makeUIViewController twich

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
9d010ce51e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      iOSClient/Main/Create cloud/NCUploadAssets.swift

+ 4 - 4
iOSClient/Main/Create cloud/NCUploadAssets.swift

@@ -423,10 +423,6 @@ struct UploadAssetsView: View {
                             }
                         }
                     }
-                    .fullScreenCover(isPresented: $isPresentedQuickLook) {
-                        ViewerQuickLook(url: URL(fileURLWithPath: fileNamePath), index: $index, isPresentedQuickLook: $isPresentedQuickLook, uploadAssets: uploadAssets)
-                            .ignoresSafeArea()
-                    }
                     .redacted(reason: uploadAssets.previewStore.isEmpty ? .placeholder : [])
 
                     Section {
@@ -549,6 +545,10 @@ struct UploadAssetsView: View {
         .sheet(isPresented: $isPresentedUploadConflict) {
             UploadConflictView(delegate: uploadAssets, serverUrl: uploadAssets.serverUrl, metadatasUploadInConflict: uploadAssets.metadatasUploadInConflict, metadatasNOConflict: uploadAssets.metadatasNOConflict)
         }
+        .fullScreenCover(isPresented: $isPresentedQuickLook) {
+            ViewerQuickLook(url: URL(fileURLWithPath: fileNamePath), index: $index, isPresentedQuickLook: $isPresentedQuickLook, uploadAssets: uploadAssets)
+                .ignoresSafeArea()
+        }
         .onReceive(uploadAssets.$dismiss) { newValue in
             if newValue {
                 presentationMode.wrappedValue.dismiss()