Selecting default directory for .fileImporter on SwiftUI

125 Views Asked by At

Does anybody knows how to define default selected folder for using with .fileImporter modifier on SwiftUI?

UIKit UIDocumentPickerViewController has the parameter directoryURL for this: https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller.

Is there something similar for SwuifUI .fileImporter? If not, what could be the code to implement this with a UIViewControllerRepresentable, or so?

0

There are 0 best solutions below