iOS 16 UIDocumentPickerViewController(forExporting, asCopy) "Move" button disabled.

Hi I have an app using UIDocumentPickerViewController on iOS < 16 using

let controller = UIDocumentPickerViewController(forExporting: [newFile], asCopy: false)

This shows a dialog with "MOVE" and works as expected on iOS < 16. However on iOS 16+ the "MOVE" Button is Disabled. Changing asCopy = true works but has the "SAVE" button. asCopy = false is used so that the file is automatically moved and removal is not needed after copy.

File creation:

//generate file name with date
let fileName = "UDM \(date).udm"
//get the file manager
let fileManager = FileManager.default
let documentsUrl = fileManager.urls(for: .documentDirectory, in: .userDomainMask)
guard documentsUrl.count != 0 else {
   return
 }
//create the file path url
let newFile = documentsUrl.first!.appendingPathComponent(fileName)
//copies database to new file 
let source = Current.database().getDbQueue()
let destination = try DatabasePool(path: newFile.path)
try source.backup(to: destination)

Move button disabled only on iOS 16+ Save button works on both iOs 155 + and 16 +

iOS 16 UIDocumentPickerViewController(forExporting, asCopy) "Move" button disabled.
 
 
Q