Composable Architecture 2.0 and SQLiteData work together like salt and pepper. You treat persisted models as simple values that live in your feature’s state, something that just isn’t possible in SwiftData.

And all of TCA’s powerful testing tools just work! You play a script of user actions to your feature and get to exhaustively test how your feature changes over time by describing it in simple mutations.

Watch our preview of these tools today: pointfree.co/episodes/ep356-be

A screen shot of a TCA2 feature interacting with a SQLiteData type.A screen shot showing an exhaustive test failure in TCA2+SQLiteData.
0

If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/pointfreeco/statuses/116178134163204917 on your instance and quote it. (Note that quoting is not supported in Mastodon.)