Bad Resize Preformance macOS because of Stacks?

Hey,

On my current project I have a vertical Scroll View with around 12 Items consisting of nested VStack and HStacks.

I noticed that the performance of resizing the window is really bad, maybe because of rerendering of the nested Stacks. With one Element the performance is good but with more elements it drops really fast.

I fixed the size of some Stacks and that helped a bit, but the performance is still really bad.

Edit: It seems that this is a problem of a multiple forms inside the scrollView which gets resized by window resizing... SwiftUI seems to handle resize of a form / the inputs really bad.

Is there a better practice of nested stacks or anything I can do?

Best

Answered by GustavGustavson in 725965022

It seems that this is a problem of a multiple forms inside the scrollView which gets resized by window resizing... SwiftUI seems to handle resize of a form / the inputs really bad.

Accepted Answer

It seems that this is a problem of a multiple forms inside the scrollView which gets resized by window resizing... SwiftUI seems to handle resize of a form / the inputs really bad.

Bad Resize Preformance macOS because of Stacks?
 
 
Q