Skip to content

Commit 7414ee5

Browse files
author
Murat Baysangurov
authored
TodoApp. Minor fixes due to API changes (JetBrains#548)
1 parent 1849838 commit 7414ee5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: examples/todoapp/ios/ios/RootView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ struct RootView: View {
1010
}
1111

1212
var body: some View {
13-
let child = self.routerStates.value.activeChild.component
13+
let child = self.routerStates.value.activeChild.instance
1414

1515
switch child {
1616
case let main as TodoRootChild.Main:

Diff for: examples/todoapp/ios/ios/SimpleRouterState.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import Todo
33
func simpleRouterState<T : AnyObject>(_ child: T) -> Value<RouterState<AnyObject, T>> {
44
return valueOf(
55
RouterState(
6-
activeChild: RouterStateEntryCreated(
6+
activeChild: ChildCreated(
77
configuration: "config" as AnyObject,
8-
component: child
8+
instance: child
99
),
1010
backStack: []
1111
)

0 commit comments

Comments
 (0)