r/iOSProgramming • u/tonycliftondev • Aug 10 '26
Question SwiftData with TCA
Anyone used TCA with SwiftData applications? What is your recommendations?
8
Upvotes
r/iOSProgramming • u/tonycliftondev • Aug 10 '26
Anyone used TCA with SwiftData applications? What is your recommendations?
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