Moved the sheet from the task list view to the navigation split view inside the ContentView view in the app target to fix an issue that occurred when pressing that button from the task group list view.
This commit is contained in:
@@ -39,9 +39,6 @@ struct ContentView: View {
|
|||||||
.newTaskButton(show: viewModel.showNewTaskButtonInDetails) {
|
.newTaskButton(show: viewModel.showNewTaskButtonInDetails) {
|
||||||
viewModel.showNewTask()
|
viewModel.showNewTask()
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $viewModel.newTaskShown) {
|
|
||||||
NewTaskView()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ContentUnavailableView(
|
ContentUnavailableView(
|
||||||
@@ -51,6 +48,9 @@ struct ContentView: View {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.sheet(isPresented: $viewModel.newTaskShown) {
|
||||||
|
NewTaskView()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user