Browse Source

fix called makeUIViewController twich

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
9d010ce51e
1 changed files with 4 additions and 4 deletions
  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()