Quantcast
Channel: SwiftUI Archives - SwiftLee
Viewing all articles
Browse latest Browse all 21

@Observable Macro performance increase over ObservableObject

$
0
0

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.


Viewing all articles
Browse latest Browse all 21

Trending Articles