Latest 2.0.0
Homepage https://github.com/InsectQY/RxURLNavigator
License MIT
Platforms ios 8.0
Dependencies URLNavigator, RxSwift, RxCocoa
Authors

Swift
Version
License
Platform

RxURLNavigator provides RxSwift extension for URLNavigator

Requirements

  • iOS 8.0+
  • Swift 5.0

Getting Started

First create your Navigator

let navigator = Navigator()

1. Use Subscribe

navigator.rx.push(UserURL.login.path)
.subscribe { 
    // your code
}

Or

navigator.rx.present(UserURL.login.path, wrap: UINavigationController.self)
.subscribe { 
    // your code
}

2. Also you can use Binder

If you want to use Binder, you should map to URLNavigatorPushWrap or URLNavigatorPresentWrap

tableView.rx.modelSelected(RouterType.self)
.wrapPush(navigator, UserURL.login.path)
.bind(to: navigator.rx.push)

Or

tableView.rx.modelSelected(RouterType.self)
.wrapPresent(navigator, UserURL.login.path, wrap: UINavigationController.self)
.bind(to: navigator.rx.present)

Installation

RxURLNavigator officially supports CocoaPods only.

Podfile

pod 'RxURLNavigator'

Import

import RxURLNavigator

Example

You can find an example app here

License

RxURLNavigator is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RxURLNavigator",
    "version": "2.0.0",
    "summary": "RxSwift Extension For URLNavigator",
    "description": "RxSwift Extension For URLNavigator(Elegant URL Routing for Swift)",
    "homepage": "https://github.com/InsectQY/RxURLNavigator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Insect": "[email protected]"
    },
    "source": {
        "git": "https://github.com/InsectQY/RxURLNavigator.git",
        "tag": "2.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "5.0",
    "source_files": "RxURLNavigator/Classes/**",
    "dependencies": {
        "URLNavigator": [],
        "RxSwift": [
            "~> 5.0"
        ],
        "RxCocoa": [
            "~> 5.0"
        ]
    }
}

Pin It on Pinterest

Share This