From 7414ee54a49375d79b65a5a8f4f0212390478e84 Mon Sep 17 00:00:00 2001 From: Murat Baysangurov Date: Wed, 31 Mar 2021 09:21:23 +0300 Subject: [PATCH] TodoApp. Minor fixes due to API changes (#548) --- examples/todoapp/ios/ios/RootView.swift | 2 +- examples/todoapp/ios/ios/SimpleRouterState.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: [] )