Browse Source

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

pull/551/head
Murat Baysangurov 4 years ago committed by GitHub
parent
commit
7414ee54a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/todoapp/ios/ios/RootView.swift
  2. 4
      examples/todoapp/ios/ios/SimpleRouterState.swift

2
examples/todoapp/ios/ios/RootView.swift

@ -10,7 +10,7 @@ struct RootView: View {
} }
var body: some View { var body: some View {
let child = self.routerStates.value.activeChild.component let child = self.routerStates.value.activeChild.instance
switch child { switch child {
case let main as TodoRootChild.Main: case let main as TodoRootChild.Main:

4
examples/todoapp/ios/ios/SimpleRouterState.swift

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

Loading…
Cancel
Save