mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
TodoApp. Minor fixes due to API changes (#548)
This commit is contained in:
committed by
GitHub
parent
1849838e82
commit
7414ee54a4
@@ -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:
|
||||
|
||||
@@ -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: []
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user