|
@@ -326,16 +326,18 @@ extension NCCollectionViewCommon {
|
|
|
//
|
|
|
// MODIFY
|
|
|
//
|
|
|
- if !isFolderEncrypted && metadata.contentType != "image/gif" && (metadata.contentType == "com.adobe.pdf" || metadata.contentType == "application/pdf" || metadata.typeFile == NCGlobal.shared.metadataTypeFileImage) {
|
|
|
- actions.append(
|
|
|
- NCMenuAction(
|
|
|
- title: NSLocalizedString("_modify_", comment: ""),
|
|
|
- icon: NCUtility.shared.loadImage(named: "pencil.tip.crop.circle"),
|
|
|
- action: { menuAction in
|
|
|
- NCFunctionCenter.shared.openDownload(metadata: metadata, selector: NCGlobal.shared.selectorLoadFileQuickLook)
|
|
|
- }
|
|
|
+ if #available(iOS 13.0, *) {
|
|
|
+ if !isFolderEncrypted && metadata.contentType != "image/gif" && (metadata.contentType == "com.adobe.pdf" || metadata.contentType == "application/pdf" || metadata.typeFile == NCGlobal.shared.metadataTypeFileImage) {
|
|
|
+ actions.append(
|
|
|
+ NCMenuAction(
|
|
|
+ title: NSLocalizedString("_modify_", comment: ""),
|
|
|
+ icon: NCUtility.shared.loadImage(named: "pencil.tip.crop.circle"),
|
|
|
+ action: { menuAction in
|
|
|
+ NCFunctionCenter.shared.openDownload(metadata: metadata, selector: NCGlobal.shared.selectorLoadFileQuickLook)
|
|
|
+ }
|
|
|
+ )
|
|
|
)
|
|
|
- )
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//
|