In Catalina I have added "Privacy - Document Folder Usage Description" : "Catalina wants to access your Destkop folder" in Info.plist
Code trying to access Desktop folder :
do {
try FileManager.default.trashItem(at: NSURL(fileURLWithPath: "/Users/catalina/Desktop/Doc.docx") as URL, resultingItemURL: nil)
} catch let err as NSError {
print(err)
}
I see system generated user consent but my customised message is not being added