by dangelov · 4y ago · 0 comments
Wrote basically the exact same thing 1 day later in Swift with AppKit and NO SwiftUI and it sits at 0% CPU usage with less code complexity. Maybe in a few years I will give SwiftUI another try.
Is it possible it is re-rendering the view hierarchy due to some data invalidation you haven't noticed?
Just like cars, you can’t build a Kia Soul, and then just replace a few parts to reach Ferrari-like performance.