Classes
The following classes are available globally.
-
A basic implementation of a property whose
value
can be observed using callbacks.
See moreExample: var property = ObservableProperty(1) property.subscribe { newValue in print("newValue: \(newValue)") } property.value = 2 // Executing the above code prints: // "newValue: 2"
Declaration
Swift
public class ObservableProperty<ValueType>