Bindable

public protocol Bindable

Defines a bindable protocol. every object implementing this will be able to bind itself to an observer.

  • Undocumented

    Declaration

    Swift

    associatedtype Element
  • binds a bindable object to an observer.

    For example, when you want to bind property value changes to a ui element.

    Declaration

    Swift

    func bind<O>(to observer: O) -> Cancelable where O : ObserverProtocol, Self.Element == O.Element