ObservablePropertyType

public protocol ObservablePropertyType

This is the protocol that the state the store holds must implement.

To use a custom state type, this protocol must be implemented on that object.

This is useful if you want to plug in a reactive programming library and use that for state instead of the built-in ObservableProperty type.

  • The value to be observed and mutated.

    Declaration

    Swift

    var value: ValueType { get set }
  • The type of the value that Self will hold.

    Note

    This is inferred from the value property implementation.

    Declaration

    Swift

    typealias ValueType