fix: single keyboard Done toolbar on Complete Task (closes #5)
#8
Reference in New Issue
Block a user
Delete Branch "fix/5-double-done-button"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #5.
Root cause
CompleteTaskViewapplied.keyboardDismissToolbar()twice — once on theactualCostTextField (line 123) and once on thenotesTextEditor (line 145). Each application installs a separateToolbarItemGroup(placement: .keyboard). SwiftUI accumulates these on the responder chain, so focusing any field rendered two stacked "Done" buttons above the keyboard, matching the screenshot in the issue.Fix
Move
.keyboardDismissToolbar()up to theFormroot so a single keyboard toolbar is registered for the whole screen. Matches the pattern already used byTaskFormView(one root-levelToolbarItemGroup(placement: .keyboard)).Verification
Complete Task→ focus theNotesfield → keyboard shows one Done button.xcodebuild build -project iosApp/honeyDue.xcodeproj -scheme HoneyDue→ BUILD SUCCEEDED.No new tests added — this is a SwiftUI layout fix, not a behaviour change.
Donetoolbar on Complete Task (closes gitea#5)