File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ You can find an example app [here](https://github.com/devxoul/URLNavigator/tree/
110
110
2 . Register to an IoC container:
111
111
112
112
```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 )!
115
115
```
116
116
117
117
3 . Inject dependency from a composition root.
@@ -123,7 +123,7 @@ I'd prefer using separated URL map file.
123
123
124
124
```swift
125
125
struct URLNavigationMap {
126
- static func initialize (navigator : NavigatorType ) {
126
+ static func initialize (navigator : NavigatorProtocol ) {
127
127
navigator.register (" myapp://user/<int:id>" ) { ... }
128
128
navigator.register (" myapp://post/<title>" ) { ... }
129
129
navigator.handle (" myapp://alert" ) { ... }
You can’t perform that action at this time.
0 commit comments