2 ms·
> Surely on a modern computer you can redraw a couple of text fields at 30fps? No, this is actually the thing you should not be doing in SwiftUI. Ideally you t
by saagarjha 4y ago
> Surely on a modern computer you can redraw a couple of text fields at 30fps?
No, this is actually the thing you should not be doing in SwiftUI. Ideally you text fields are not redrawing at 30 fps, actually, ideally nothing in your interface is doing this except when an animation is running and even then only the components that are animating. SwiftUI makes it really easy for you to accidentally start redrawing things that don't really need to be redraw far more often then you want, and that's how you get performance problems.