Skip to content

Commit bb1bebe

Browse files
committed
Clear bolus entry field on tap to edit
1 parent ccb5f21 commit bb1bebe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Loop/Views/BolusEntryView.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ struct BolusEntryView: View {
287287
maxLength: 5,
288288
doneButtonColor: .loopAccent
289289
)
290+
.onTapGesture {
291+
if typedBolusEntry.wrappedValue == recommendedBolusString {
292+
typedBolusEntry.wrappedValue = ""
293+
}
294+
}
290295
bolusUnitsLabel
291296
}
292297
}

0 commit comments

Comments
 (0)