-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support external storage option? #150
Comments
sindresorhus
changed the title
Support external storage option
Support external storage option?
Oct 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes you need to store something that is a bit larger, like a icon image. Storing this in UserDefaults would be slow as it has to be decoded each time it's accessed.
SwiftData has a
.externalStorage
option that makes it store it to a file on disk instead of in the database. Maybe we could do something similar.This can only be supported if the
suite
option is not given as otherwise we don't know where to store it.The text was updated successfully, but these errors were encountered: