diff --git a/examples/todoapp/ios/ios/RootView.swift b/examples/todoapp/ios/ios/RootView.swift index ab686ab26e..ec3e7b349d 100644 --- a/examples/todoapp/ios/ios/RootView.swift +++ b/examples/todoapp/ios/ios/RootView.swift @@ -10,7 +10,7 @@ struct RootView: View { } var body: some View { - let child = self.routerStates.value.activeChild.component + let child = self.routerStates.value.activeChild.instance switch child { case let main as TodoRootChild.Main: diff --git a/examples/todoapp/ios/ios/SimpleRouterState.swift b/examples/todoapp/ios/ios/SimpleRouterState.swift index fc046eed87..4e98027490 100644 --- a/examples/todoapp/ios/ios/SimpleRouterState.swift +++ b/examples/todoapp/ios/ios/SimpleRouterState.swift @@ -3,9 +3,9 @@ import Todo func simpleRouterState(_ child: T) -> Value> { return valueOf( RouterState( - activeChild: RouterStateEntryCreated( + activeChild: ChildCreated( configuration: "config" as AnyObject, - component: child + instance: child ), backStack: [] )