r/iOSProgramming • • Aug 10 '26

Question SwiftData with TCA

Anyone used TCA with SwiftData applications? What is your recommendations?

8 Upvotes

19 comments sorted by

View all comments

Show parent comment

6

u/Kurtle123 Aug 10 '26

SwiftData and TCA are orthogonal concerns. TCA makes all state mutations be enumerable actions which allow you to simply set up a state and then test the actions against what you expect the state to be.

I find this much simpler than having to manually make mocks or roll your own testing interface