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:
1 parent
dd6f453466
commit
68bca572c1
1 file changed
+3
-3
@@ -39,9 +39,6 @@ struct ContentView: View {
|
||||
.newTaskButton(show: viewModel.showNewTaskButtonInDetails) {
|
||||
viewModel.showNewTask()
|
||||
}
|
||||
.sheet(isPresented: $viewModel.newTaskShown) {
|
||||
NewTaskView()
|
||||
}
|
||||
}
|
||||
else {
|
||||
ContentUnavailableView(
|
||||
@@ -51,6 +48,9 @@ struct ContentView: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $viewModel.newTaskShown) {
|
||||
NewTaskView()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user