Skip to content

Commit bab3167

Browse files
committed
Update README.md
1 parent b19d013 commit bab3167

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ You can find an example app [here](https://github.com/devxoul/URLNavigator/tree/
110110
2. Register to an IoC container:
111111

112112
```swift
113-
container.register(NavigatorType.self) { _ in Navigator() } // Swinject
114-
let navigator = container.resolve(NavigatorType.self)!
113+
container.register(NavigatorProtocol.self) { _ in Navigator() } // Swinject
114+
let navigator = container.resolve(NavigatorProtocol.self)!
115115
```
116116

117117
3. Inject dependency from a composition root.
@@ -123,7 +123,7 @@ I'd prefer using separated URL map file.
123123

124124
```swift
125125
struct URLNavigationMap {
126-
static func initialize(navigator: NavigatorType) {
126+
static func initialize(navigator: NavigatorProtocol) {
127127
navigator.register("myapp://user/<int:id>") { ... }
128128
navigator.register("myapp://post/<title>") { ... }
129129
navigator.handle("myapp://alert") { ... }

0 commit comments

Comments
 (0)