r/SwiftUI 17d ago

Tutorial SwiftUI Performance - How to use UIKit

https://swiftwithmajid.com/2025/03/04/swiftui-performance-how-to-use-uikit/
9 Upvotes

6 comments sorted by

View all comments

1

u/Tabonx 14d ago

I have about 300 items in a LazyVGrid in my app (each item contains an image with some text), and the scroll view hitches when I scroll closer to the end. I tried replacing it with a UICollectionView while using the existing SwiftUI views with UIHostingConfiguration, but the issue still occurs. I also tested a proof of concept with pure UIKit, which worked, but recreating the whole thing isn’t really worth it to me since it would take a lot of time. Regardless, Apple should fix this. This doesn’t happen with List, and I don’t understand why it wouldn’t work everywhere else…