Closed redok016 closed 2 years ago
I have a question. I define route in my coordinator class like below.
... @Route(.modal) var createTodo = makeCreateTodo ... @ViewBuilder func makeCreateTodo() -> some View { CreateTodoView(todoList: todoList) } ...
And when I call this route at outside. I would like to call route method just like this.
router.route(\.createTodo, onDismiss:{ })
Is there any way receive onDismiss callback on calling route method?
onDismiss
Ok I found the way. When I access coordinator of router, there is a method route(:onDismiss).
I have a question. I define route in my coordinator class like below.
And when I call this route at outside. I would like to call route method just like this.
Is there any way receive
onDismiss
callback on calling route method?