Эх сурвалжийг харах

improved code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 жил өмнө
parent
commit
8ca3af9fd7

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

@@ -259,6 +259,9 @@ struct UploadAssetsView: View {
                                             .onTapGesture {
                                                 self.index = index
                                                 isPresentedCrop = true
+                                            }.fullScreenCover(isPresented: $isPresentedCrop) {
+                                                ImageCropper(previewStore: $uploadAssets.previewStore, index: $index, cropShapeType: $cropShapeType, presetFixedRatioType: $presetFixedRatioType)
+                                                    .ignoresSafeArea()
                                             }
                                     }
                                 }
@@ -343,10 +346,6 @@ struct UploadAssetsView: View {
             .navigationTitle(NSLocalizedString("_upload_photos_videos_", comment: ""))
             .navigationBarTitleDisplayMode(.inline)
         }
-        .sheet(isPresented: $isPresentedCrop) {
-            ImageCropper(previewStore: $uploadAssets.previewStore, index: $index, cropShapeType: $cropShapeType, presetFixedRatioType: $presetFixedRatioType)
-                .ignoresSafeArea()
-        }
         .sheet(isPresented: $isPresentedSelect) {
             SelectView(serverUrl: $uploadAssets.serverUrl)
         }