Skip to content

Commit 5b14269

Browse files
authored
[LOOP-2242] Glucose entry field font
1 parent 596c7a2 commit 5b14269

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Loop/Views/BolusEntryView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ struct BolusEntryView: View, HorizontalSizeClassOverride {
191191
DismissibleKeyboardTextField(
192192
text: typedManualGlucoseEntry,
193193
placeholder: "---",
194-
font: typedManualGlucoseEntry.wrappedValue == "" ? .preferredFont(forTextStyle: .title1) : .heavy(.title1),
194+
font: .heavy(.title1),
195195
textAlignment: .right,
196196
keyboardType: .decimalPad,
197197
shouldBecomeFirstResponder: isManualGlucoseEntryRowVisible,

Loop/Views/SimpleBolusView.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ struct SimpleBolusView: View, HorizontalSizeClassOverride {
138138
DismissibleKeyboardTextField(
139139
text: $viewModel.enteredGlucoseAmount,
140140
placeholder: "---",
141-
// The heavy title is ending up clipped due to a bug that is fixed in iOS 14. Uncomment the following when we can build for iOS 14.
142-
font: .preferredFont(forTextStyle: .title1), // viewModel.enteredGlucoseAmount == "" ? .preferredFont(forTextStyle: .title1) : .heavy(.title1),
141+
font: .heavy(.title1),
143142
textAlignment: .right,
144143
keyboardType: .decimalPad,
145144
maxLength: 3

0 commit comments

Comments
 (0)