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

Improved code

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

+ 7 - 8
iOSClient/Main/Create cloud/NCUploadScanDocument.swift

@@ -42,15 +42,14 @@ class NCHostingUploadScanDocumentView: NSObject {
 
 class NCUploadScanDocument: ObservableObject {
 
-    @Published var userBaseUrl: NCUserBaseUrl
-    @Published var serverUrl: String
-    @Published var fileName: String
-    @Published var size: String = ""
-    @Published var url: URL = Bundle.main.url(forResource: "Reasons to use Nextcloud", withExtension: "pdf")!
-    @Published var metadata = tableMetadata()
-
-    let fileNameDefault = NSTemporaryDirectory() + "scandocument.pdf"
+    var userBaseUrl: NCUserBaseUrl
+    var serverUrl: String
+    var fileName: String
+    var size: String = ""
+    var url: URL = Bundle.main.url(forResource: "Reasons to use Nextcloud", withExtension: "pdf")!
+    var metadata = tableMetadata()
     var images: [UIImage]
+    let fileNameDefault = NSTemporaryDirectory() + "scandocument.pdf"
 
     init(images: [UIImage], userBaseUrl: NCUserBaseUrl, serverUrl: String, fileName: String) {
         self.images = images