BJNMutableObservable

BJNMutableObservable is a BJNObservable that allows its value to be changed.

To modify a BJNMutableObservable‘s value,

mutableObservableVar.value = true

As a subclass of BJNObservable, you can still listen in on value changes.

mutableObservableVar.onChange {
    print("value changed to ", mutableObservableVar.value)
}
  • Represents the value of this BJNMutableObservable. Value is a mutable property and can be updated.