From 7867bcda366c5d2a23dbe9a03df98c3a8d376ca1 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 12 Feb 2026 04:06:46 +0000 Subject: [PATCH] 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: https://repo.rock-n-code.com/rock-n-code/todos-app/pulls/11 Co-authored-by: Javier Cicchelli Co-committed-by: Javier Cicchelli --- 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() + } } }