Skip to content

Commit

Permalink
TodoApp. Minor fixes due to API changes (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
Murat Baysangurov authored Mar 31, 2021
1 parent 1849838 commit 7414ee5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/todoapp/ios/ios/RootView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions examples/todoapp/ios/ios/SimpleRouterState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
)
Expand Down

0 comments on commit 7414ee5

Please sign in to comment.