Replies: 2 comments 5 replies
-
+1 I came across the same issue on one of my projects recently. I have an "infinite" list and I was experiencing issues when users were scrolled down and tapped the tab icon/top title to scroll back to the top. In those instances, depending on how far the users were scrolled, the app froze for a noticeable time. This is not present in vanilla SwiftUI app powered by an Observable object. |
Beta Was this translation helpful? Give feedback.
-
Hi @jasin755, I believe you are simply seeing the effects of all SwiftUI views being wrapped in an To prove this to yourself, put a If you run your app in release you will find that only the rows that are visible have their Since this isn't an issue with the library I am going to convert it to a discussion. Please feel free to continue the conversation over there! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I encountered a performance issue on a regular listing using the standard TCA approach (when scrolling quickly, the list starts to chop and skip lines):
Interestingly, I found a workaround that will rapidly improve performance:
Original discussion: https://pointfreecommunity.slack.com/archives/C04KQQ7NXHV/p1739455053227119
Checklist
main
branch of this package.Reproducing project
Here I have prepared a simple sample project where you can reliably simulate and test both approaches:
https://github.com/jasin755/tca_slowlist
The Composable Architecture version information
1.17.1
Destination operating system
iOS 18
Xcode version information
16.2
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions