I'm working with a slightly different architecture now, and I'm still seeing performance problems.
In summary, I have:
A NavigationStack
A list
7 charts in that list
Each chart has a variable amount of data points, but on average about 2000. If I tap a navigation destination, the app hangs for 1-2s. I've noticed a correlation, where if I whittle down my data points on each chart, the app hang shortens as well. Even down to less than 100 data points, my hang is more than 0.5s, so there's still clearly something wrong or inefficient going on.
Still not confident if it's my code that's inefficient or if there's a problem with Charts or NavigationStack, but I figured I'd journal my latest findings.
Edit:
Actually after both reducing samples, and removing my chart modifiers, my hang is almost not noticeable. So I think it's a combination of both samples + the modifiers I'm using on the charts.
So somewhere with that is the problem....but why does it slow down navigation so much?
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: