SwiftUI - FileImporter allow extension .sqlite3

Hi,


my app use the fileimporter and fileexporter to transfer data. The export process works.


But my app is not able to pick the files with the extension "sqlite3". They are grayed out. See screenshot. Not able to pick.


What I have to do to allow my app to use the extension "sqlite3"?



Many thanks in advance.


Sven

Posted on Mar 7, 2022 2:38 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 7, 2022 7:33 PM

Show your code that calls the file importer.


The .fileImporter modifier has an allowedContentTypes argument, which lists the file types that can be imported. You must include .sqlite3 in the array of allowed content types.


Similar questions

2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SwiftUI - FileImporter allow extension .sqlite3

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.