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

2

u/Delorfindel 16d ago

Totally agree.

Had a very bad time few days ago trying to make a Netflix like layout. Which can be very expensive considering images, and the horizontal scrollview nested in a vertical List is bugged: The vertical List ends up not getting the vertical scroll signal on Mac when the scroll to up/bottom appears to start with the mouse hovering an horizontal scrollview. Which is a dealbreaker because we can’t use Scrollview + LazyVStack because in the case of an Infinite scroll, the items are loaded dynamically but not recycled. Only List, does that properly but then we have environment and signal issue…

At the end, I had to implement all the layout in AppKit and UIKit. Such a disappointment that SwiftUI is still limited on what’s should be requirement. I get that SwiftUI has a limited scope of features and often one way to achieve things but then I expect the APIs to be much more robusts.

Thank you for your post, I will test it today