Group tasks feature (#3)

This PR contains the work done to implement the **Group Task** feature, and to integrate it into the main content view of the app. Furthermore, an issue related to triggering a view update after inserting the todo tasks into the model container has been fixed.

Reviewed-on: rock-n-code/todos-app#3
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 #3.
This commit is contained in:
2026-02-10 02:22:41 +00:00
committed by javier
parent 5506471fe0
commit 0b8e5d8bd0
16 changed files with 806 additions and 9 deletions
+6 -4
View File
@@ -52,7 +52,7 @@ struct NewTaskView: View {
"view.new-task.placeholder.title",
text: $viewModel.title
)
.autocapitalization(.none)
.autocapitalization(.sentences)
.autocorrectionDisabled(false)
.keyboardType(.asciiCapable)
@@ -61,7 +61,7 @@ struct NewTaskView: View {
text: $viewModel.note,
axis: .vertical
)
.autocapitalization(.none)
.autocapitalization(.sentences)
.autocorrectionDisabled(false)
.keyboardType(.asciiCapable)
.lineLimit(3 ... 6)
@@ -99,7 +99,9 @@ struct NewTaskView: View {
// MARK: - Previews
#Preview("New todo task") {
#Preview(
"New todo task",
traits: .emptyContainer
) {
NewTaskView()
.modelContainer(for: Todo.self, inMemory: true)
}