'Is there any way to allow only local files with SwiftUI's file importer?

I am using SwiftUI's classic file importer but it shows files from Google Drive etc. too. I'd like to ask you guys if it's possible to force only local files (in my case pdfs).

.fileImporter(
            isPresented: $importItNow,
            allowedContentTypes: [.pdf],
            allowsMultipleSelection: false
        ) { result in
            do {
                guard let selectedFile: URL = try result.get().first else { return }...

Importer Screenshot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source