SwiftData

Is there a way to view the data saved when using swiftdata? Even after deleting all models, the storage space taken up by the app in Settings is too large.

The way to view all the hidden data too

The SwiftData files can be found via the modelConfiguration.url property, typically in the program container's Application Support folder.

If you have a ModelContainer, you can pass it to something like this:

Which will print all the filenames and sizes for the sqlite databases as well as any support files for model attributes marked as external storage.

SwiftData
 
 
Q