SubjectType

public protocol SubjectType : ObservableType

Represents an object that is both an observable sequence as well as an observer.

  • The type of the observer that represents this subject.

    Usually this type is type of subject itself, but it doesn’t have to be.

    Declaration

    Swift

    associatedtype SubjectObserverType : ObserverType
  • Returns observer interface for subject.

    Declaration

    Swift

    func asObserver() -> SubjectObserverType

    Return Value

    Observer interface for subject.