Documentation or Resources to Measure and Optimize SwiftUI Performance?

Does anyone have some resources to recommend for learning more about measuring and optimizing SwiftUI performance and rendering? I haven't seen a ton from Apple that looks like it's going to help me more.

I did find two sessions from WWDC 2023. The "Demystify SwiftUI performance" session[1] does tell us the _printChanges function can help tell us when component bodies are computed. I see how I can attach this to a component that I built… I'm not (yet) sure if I have the ability to run this on arbitrary system components in my component graph.

The "Analyze hangs with Instruments" session[2] does walk us through using the SwiftUI Instruments to measure body computations.

Does anyone have any more resources along these lines for learning more? SwiftUI is closed source… so we don't really have easy visibility inside to see for ourselves. Bummer.

Are there any additional debug APIs (like _printChanges) that can help for local development?

I'm also interested to learn more about view equality[3]… I found this essay but it's four years old and I still can't find more information directly from Apple about EquatableView

I would prefer to find any more documentation or resources directly from Apple… but I would be happy with free third-party resources as long as they have some legit data to back up their code. Thanks!

[1] https://developer.apple.com/videos/play/wwdc2023/10160/

[2] https://developer.apple.com/videos/play/wwdc2023/10248/

[3] https://swiftui-lab.com/equatableview/

Documentation or Resources to Measure and Optimize SwiftUI Performance?
 
 
Q