@@ -151,18 +151,37 @@ struct SimpleBolusView: View, HorizontalSizeClassOverride {
151151 }
152152
153153 private var recommendedBolusRow : some View {
154- HStack {
155- Text ( " Recommended Bolus " , comment: " Label for recommended bolus row on simple bolus screen " )
156- Spacer ( )
157- HStack ( alignment: . firstTextBaseline) {
158- Text ( viewModel. recommendedBolus)
159- . font ( . title)
160- . foregroundColor ( Color ( . label) )
161- . padding ( [ . top, . bottom] , 4 )
162- bolusUnitsLabel
154+ VStack ( alignment: . leading) {
155+ HStack {
156+ Text ( " Recommended Bolus " , comment: " Label for recommended bolus row on simple bolus screen " )
157+ Spacer ( )
158+ HStack ( alignment: . firstTextBaseline) {
159+ Text ( viewModel. recommendedBolus)
160+ . font ( . title)
161+ . foregroundColor ( Color ( . label) )
162+ . padding ( [ . top, . bottom] , 4 )
163+ bolusUnitsLabel
164+ }
165+ }
166+ . padding ( . trailing, 8 )
167+ if let activeInsulin = viewModel. activeInsulin {
168+ HStack ( alignment: . center, spacing: 3 ) {
169+ Text ( " Adjusted for " )
170+ . font ( . footnote)
171+ . foregroundColor ( . secondary)
172+ Text ( " Active Insulin " )
173+ . font ( . footnote)
174+ . bold ( )
175+ Text ( activeInsulin)
176+ . font ( . footnote)
177+ . bold ( )
178+ . foregroundColor ( . secondary)
179+ bolusUnitsLabel
180+ . font ( . footnote)
181+ . bold ( )
182+ }
163183 }
164184 }
165- . padding ( . trailing, 8 )
166185 }
167186
168187 private var bolusEntryRow : some View {
@@ -197,7 +216,7 @@ struct SimpleBolusView: View, HorizontalSizeClassOverride {
197216 . foregroundColor ( Color ( . secondaryLabel) )
198217 }
199218
200- private var bolusUnitsLabel : some View {
219+ private var bolusUnitsLabel : Text {
201220 Text ( QuantityFormatter ( ) . string ( from: . internationalUnit( ) ) )
202221 . foregroundColor ( Color ( . secondaryLabel) )
203222 }
0 commit comments