Skip to content

Commit

Permalink
fix nightscout#211 issue
Browse files Browse the repository at this point in the history
a icon is available to dismiss the keyboard.
  • Loading branch information
avouspierre committed May 18, 2024
1 parent 56a3f87 commit 1e74fc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension AddCarbs {
HStack {
Text("Note").foregroundColor(.secondary)
TextField("", text: $state.note).multilineTextAlignment(.trailing)
if state.note != "", isFocused {
if isFocused {
Button { isFocused = false } label: { Image(systemName: "keyboard.chevron.compact.down") }
.controlSize(.mini)
}
Expand Down

0 comments on commit 1e74fc6

Please sign in to comment.