From 68bca572c1ab0c7a45f80ff724a044d2f207bbc9 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 12 Feb 2026 05:04:46 +0100 Subject: [PATCH] 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. --- App/Sources/Views/ContentView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/App/Sources/Views/ContentView.swift b/App/Sources/Views/ContentView.swift index 13b3111..45d3dbf 100644 --- a/App/Sources/Views/ContentView.swift +++ b/App/Sources/Views/ContentView.swift @@ -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() + } } }