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:
@@ -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