I'm using custom scrollview with UIViewControllerRepresentable and works fine But when I using with LazyVStack it doesn't work that I expected.
LazyVStack doesn't create items until it needs to render them onscreen But when I use this with custom scrollview, it draws at once.
So when I do this,
It works well as I expected But when I do this
It comsumes memory as I expected.
Can't I using this with custom scrollView?
LazyVStack doesn't create items until it needs to render them onscreen But when I use this with custom scrollview, it draws at once.
So when I do this,
Code Block swift ScrollView { LazyVStack { ForEach(0...10000, id:\.self) { Text(String($0)) } } }
It works well as I expected But when I do this
Code Block swift CustomScrollView { LazyVStack { ForEach(0...10000, id:\.self) { Text(String($0)) } } }
It comsumes memory as I expected.
Can't I using this with custom scrollView?