Reactive

extension Reactive

Observables

  • Navigate to a route.

    Declaration

    Swift

    public func navigate<R>(to route: R, animated: Bool = true) -> Completable where Base : XRouter<R>, R : RouteType

    Return Value

    A Completable indicating when the navigation has completed, or an .error.

  • Open a URL.

    Declaration

    Swift

    @discardableResult
    public func openURL<R>(_ url: URL, animated: Bool = true) -> Single<Bool> where Base : XRouter<R>, R : RouteType

    Return Value

    A Single<Bool> indicating whether the route was handled or not, or an .error.