Skip to content
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

Migrate from CoreData to SwiftData #514

Closed
wants to merge 8 commits into from
Closed

Migrate from CoreData to SwiftData #514

wants to merge 8 commits into from

Conversation

theospears
Copy link
Collaborator

@theospears theospears commented Nov 15, 2024

This migrates BeeSwift from CoreData to SwiftData. Data is not migrated, but this is fine as we have not done a public release based on CoreData. This is intended to be a minimal migration. In particular it does not yet make use of @ModelActor which will be needed to get the concurrency behavior right.

Note this removes Spotlight support as there isn't yet a handy helper for that with SwiftData like there is with core data. We'll need to write a little bit of manual code to bring that back.

Testing:
Verified the app launches, logs in, and can view gallery and goal page

Copy link
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@theospears theospears changed the title move types to SwiftData Migrate from CoreData to SwiftData Nov 15, 2024
@theospears theospears marked this pull request as ready for review November 15, 2024 00:56
@theospears theospears marked this pull request as draft November 15, 2024 00:57
@theospears
Copy link
Collaborator Author

This is the first working version. I need to read over the diff and also locally do some more validation that it isn't totally broken before merging. I intend to merge the smallest diff that basically works here to minimize the merge conflict window, and then follow up with more cleanup afterwards.

@theospears
Copy link
Collaborator Author

Overall it seems like SwiftData isn't mature enough to use yet (see e.g. https://developer.apple.com/forums/thread/759364).

@theospears theospears closed this Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant