The @Observable Macro was first introduced during WWDC 2023 to replace ObservableObject and its @Published parameters. The macro allows you to remove all published properties while still being able to redraw SwiftUI views when a change occurs automatically. I highly recommend replacing your ObservableObject instances since the new macro prevents unnecessary SwiftUI redraws. As part …
The post @Observable Macro performance increase over ObservableObject appeared first on SwiftLee.