Presentable

public protocol Presentable

An abstraction of what can be presented to the screen. For now, UIViewControllers and Flows are Presentable

  • Rx Observable that triggers a bool indicating if the current Presentable is being displayed (applies to UIViewController, Flow or UIWindow for instance)

    Declaration

    Swift

    var rxVisible: Observable<Bool> { get }
  • Rx Observable (Single trait) triggered when this presentable is dismissed

    Declaration

    Swift

    var rxDismissed: Single<Void> { get }

Available where Self: UIViewController

  • rxVisible Default implementation

    Default Implementation

    Rx Observable that triggers a bool indicating if the current UIViewController is being displayed

    Declaration

    Swift

    var rxVisible: Observable<Bool> { get }
  • rxDismissed Default implementation

    Default Implementation

    Rx Observable (Single trait) triggered when this UIViewController is dismissed

    Declaration

    Swift

    var rxDismissed: Single<Void> { get }

Available where Self: Flow

  • rxVisible Default implementation

    Default Implementation

    Rx Observable that triggers a bool indicating if the current Flow is being displayed

    Declaration

    Swift

    var rxVisible: Observable<Bool> { get }
  • rxDismissed Default implementation

    Default Implementation

    Rx Observable (Single trait) triggered when this Flow is dismissed

    Declaration

    Swift

    var rxDismissed: Single<Void> { get }

Available where Self: UIWindow

  • rxVisible Default implementation

    Default Implementation

    Rx Observable that triggers a bool indicating if the current UIWindow is being displayed

    Declaration

    Swift

    var rxVisible: Observable<Bool> { get }
  • rxDismissed Default implementation

    Default Implementation

    Rx Observable (Single trait) triggered when this UIWindow is dismissed

    Declaration

    Swift

    var rxDismissed: Single<Void> { get }