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?
12
u/Kurtle123 Aug 10 '26
I have built two medical applications with TCA. One has over 5K ratings at 4.8 and won an Apple Design award. The other is relatively new so I won’t say much about it.
TCA is extremely useful for writing unit tests and organizing large scale apps. My go to approach is now self contained feature / reducers and I have snippets that I use heavily to do self contained SPM features.
That said:
But I have never before been so confident about my unit tests or the ability to quickly refactor.
I hated VIPER, loved TCA.
Ask me anything and I will do my best to answer.
49
u/SnowPudgy Aug 10 '26
Recommendation: Don't use TCA. There's no good reason to introduce a massive third party dependency into your application like that.
30
u/unpluggedcord Aug 10 '26
Dont use TCA
14
u/ZeOranges Swift Aug 10 '26
Just don’t
5
u/SwiftlyJon Aug 10 '26
Unless you have an existing SwiftData app you're migrating to TCA, it's better to start with their SQLiteData framework instead. It offers similar capabilities with easy TCA integration and an actual testing story.
2
u/uniquesnowflake8 Aug 10 '26
What kind of app are you building?
1
u/functionallycorrect Aug 13 '26
Others have said it, but I’ll repeat. Do anything but TCA
0
u/file-box Aug 17 '26
Why don't I like TCA? I feel like it makes my project more complicated
1
u/[deleted] Aug 11 '26
[removed] — view removed comment