Explorar el Código

Improved code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana hace 2 años
padre
commit
239166aab2
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      iOSClient/Main/Create cloud/NCUploadScanDocument.swift

+ 3 - 3
iOSClient/Main/Create cloud/NCUploadScanDocument.swift

@@ -272,9 +272,6 @@ struct UploadScanDocumentView: View {
                     .onTapGesture {
                         isPresentedSelect = true
                     }
-                    .sheet(isPresented: $isPresentedSelect) {
-                        NCSelectRepresentedView(uploadScanDocument: uploadScanDocument)
-                    }
                     .complexModifier { view in
                         if #available(iOS 16, *) {
                             view.alignmentGuide(.listRowSeparatorLeading) { _ in
@@ -352,6 +349,9 @@ struct UploadScanDocumentView: View {
             }
         }
         .background(Color(UIColor.systemGroupedBackground))
+        .sheet(isPresented: $isPresentedSelect) {
+            NCSelectRepresentedView(uploadScanDocument: uploadScanDocument)
+        }
         .sheet(isPresented: $isPresentedUploadConflict) {
             NCUploadConflictRepresentedView(uploadScanDocument: uploadScanDocument, serverUrl: serverUrl, metadatasConflict: metadatasConflict)
         }