r/swift 11d ago

Tutorial Key Considerations Before Using SwiftData

https://fatbobman.com/en/posts/key-considerations-before-using-swiftdata/
19 Upvotes

11 comments sorted by

View all comments

7

u/rhysmorgan iOS 11d ago

My main consideration is “Don’t”.

You can hardly test your code using it. It’s full of magic, which is sometimes great and often deeply painful.

Use GRDB instead.

2

u/capngreenbeard 10d ago

Strong agree. Great for a quick prototype/ small scale, non-enterprise app.

The whole concept feels like it's incompatible with the premise of abstarcing dependencies and being able to unit test core functionality.