marinofaggiana 4 years ago
parent
commit
909cd11c53
1 changed files with 4 additions and 2 deletions
  1. 4 2
      iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

+ 4 - 2
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -85,8 +85,10 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC
 
         changeTheming()
         
-        let value = CCUtility.getTextRecognitionStatus()
-        SetTextRecognition(newValue: value)
+        if #available(iOS 13.0, *) {
+            let value = CCUtility.getTextRecognitionStatus()
+            SetTextRecognition(newValue: value)
+        }
     }
     
     @objc func changeTheming() {