What is the equivalent of @ObservedObject in SwiftUI for UIKit?

Viewed 23

Since iOS 13.0+ there is a new structure ObservedObject

[...] that subscribes to an observable object and invalidates a view whenever the observable object changes.

The Foundation module provides ObservableObject, Published.

Is there an equivalent @ObservedObject property wrapper for UIKit to subscribe to the observable object changes?

0 Answers
Related