diff --git a/LoopCaregiver/LoopCaregiver/Views/Actions/OverrideInsulinNeedsView.swift b/LoopCaregiver/LoopCaregiver/Views/Actions/OverrideInsulinNeedsView.swift index ee2c4369..2de98783 100644 --- a/LoopCaregiver/LoopCaregiver/Views/Actions/OverrideInsulinNeedsView.swift +++ b/LoopCaregiver/LoopCaregiver/Views/Actions/OverrideInsulinNeedsView.swift @@ -12,6 +12,14 @@ struct OverrideInsulinNeedsView: View { private let heightToWidthRatio = 0.1 + var longFillRatio: Double { + min(1.0, ratioComplete * 0.5) + } + + var shortFillRatio: Double { + min(1.0, ratioComplete) + } + var body: some View { GeometryReader { proxy in ZStack { @@ -25,14 +33,6 @@ struct OverrideInsulinNeedsView: View { } } } - - var longFillRatio: Double { - min(1.0, ratioComplete * 0.5) - } - - var shortFillRatio: Double { - min(1.0, ratioComplete) - } } func fillableCapsule(fillRatio: Double, fillColor: Color) -> some View {