|
@@ -86,7 +86,7 @@ struct CarbRatioStepView: View {
|
|
|
.carbRatioRateValues[state.carbRatioItems.first!.rateIndex] as NSNumber
|
|
.carbRatioRateValues[state.carbRatioItems.first!.rateIndex] as NSNumber
|
|
|
)
|
|
)
|
|
|
Text(
|
|
Text(
|
|
|
- "45 \(String(localized: "g", comment: "Gram abbreviation")) / \(formatter.string(from: state.carbRatioRateValues[state.carbRatioItems.first!.rateIndex] as NSNumber) ?? "--") = \(String(format: "%.1f", insulinNeeded))" +
|
|
|
|
|
|
|
+ "45 \(String(localized: "g", comment: "Gram abbreviation")) / \(formatter.string(from: state.carbRatioRateValues[state.carbRatioItems.first!.rateIndex] as NSNumber) ?? "--") \(String(localized: "g/U")) = \(String(format: "%.1f", insulinNeeded))" +
|
|
|
" " + String(localized: "U", comment: "Insulin unit abbreviation")
|
|
" " + String(localized: "U", comment: "Insulin unit abbreviation")
|
|
|
)
|
|
)
|
|
|
.font(.system(.body, design: .monospaced))
|
|
.font(.system(.body, design: .monospaced))
|