From 6fa92d31daecbfcf336e81a5682022c8ec1badd6 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Thu, 18 Sep 2025 20:39:44 -0500 Subject: [PATCH] Clear bolus recommendation on initial edit --- Loop/Views/BolusEntryView.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Loop/Views/BolusEntryView.swift b/Loop/Views/BolusEntryView.swift index ab2e6d3f7..fecd2365c 100644 --- a/Loop/Views/BolusEntryView.swift +++ b/Loop/Views/BolusEntryView.swift @@ -248,7 +248,11 @@ struct BolusEntryView: View { .multilineTextAlignment(.trailing) .foregroundColor(.loopAccent) .focused($bolusFieldFocused) - .onTapGesture { didBeginEditing() } + .onChange(of: bolusFieldFocused) { focused in + if focused { + didBeginEditing() + } + } .onChange(of: enteredBolusString) { newValue in if newValue.count > 5 { enteredBolusString = String(newValue.prefix(5))