Daniel Jorge
Daniel Jorge

Reputation: 73

FileImporter SwiftUI

I m experiencing something weird with my File Importer in SwiftUI.

Here is the code I´m using to invoke the file importer :

.fileImporter(isPresented: $showFilePicker, allowedContentTypes: [.data], onCompletion: { result in
    print(result)
})

The sheet with the importer shows up. However, it opens by default on "Recents" and I have no menu to navigate?

Image with no Menu

Image with no Menu

I can make the menu show up if I type something on the search bar and then press the "X" which clears the text, after that the menu will show up.

Menu shows up after clearing search bar

Menu shows up after clearing search bar

This is the wished style. With the menu. What am I missing?

Upvotes: 2

Views: 521

Answers (0)

Related Questions