From d60c079d7abc32d5e77ee3116f7ccfb663513327 Mon Sep 17 00:00:00 2001 From: marionbarker Date: Sun, 20 Sep 2026 17:14:06 -0700 Subject: [PATCH] fix for Xcode 27 --- .../Views/Actions/OverrideInsulinNeedsView.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 {