New task sheet from task group list issue (#11)

This PR contains the work done to fix an issue encountered while trying to open a new task sheet from the task group list view on iPhones.

Reviewed-on: rock-n-code/todos-app#11
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit was merged in pull request #11.
This commit is contained in:
2026-02-12 04:06:46 +00:00
committed by javier
parent dd6f453466
commit 7867bcda36
+3 -3
View File
@@ -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()
}
}
}