TodoApp. Minor fixes due to API changes (#548)

This commit is contained in:
Murat Baysangurov
2021-03-31 09:21:23 +03:00
committed by GitHub
parent 1849838e82
commit 7414ee54a4
2 changed files with 3 additions and 3 deletions

View File

@@ -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:

View File

@@ -3,9 +3,9 @@ import Todo
func simpleRouterState<T : AnyObject>(_ child: T) -> Value<RouterState<AnyObject, T>> {
return valueOf(
RouterState(
activeChild: RouterStateEntryCreated(
activeChild: ChildCreated(
configuration: "config" as AnyObject,
component: child
instance: child
),
backStack: []
)