We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ac026 commit 6fa92d3Copy full SHA for 6fa92d3
Loop/Views/BolusEntryView.swift
@@ -248,7 +248,11 @@ struct BolusEntryView: View {
248
.multilineTextAlignment(.trailing)
249
.foregroundColor(.loopAccent)
250
.focused($bolusFieldFocused)
251
- .onTapGesture { didBeginEditing() }
+ .onChange(of: bolusFieldFocused) { focused in
252
+ if focused {
253
+ didBeginEditing()
254
+ }
255
256
.onChange(of: enteredBolusString) { newValue in
257
if newValue.count > 5 {
258
enteredBolusString = String(newValue.prefix(5))
0 commit comments