Made use of the "onResignFocus()" function within the NewTaskView and the TaskListContent views in the app target.

This commit is contained in:
2026-02-12 00:06:24 +01:00
parent 61dc7bc3f8
commit 2ffd7522dc
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -50,7 +50,8 @@ struct NewTaskView: View {
Section("view.new-task.section.task") {
TextField(
"view.new-task.placeholder.title",
text: $viewModel.title
text: $viewModel.title,
axis: .vertical
)
.autocapitalization(.sentences)
.autocorrectionDisabled(false)
@@ -78,6 +79,7 @@ struct NewTaskView: View {
}
.navigationTitle("view.new-task.navigation.title")
.navigationBarTitleDisplayMode(.inline)
.onResignFocus()
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Button(role: .cancel) {