From a26c34dd7be314bfe9992c8d41b894eb537de814 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 10 Sep 2025 13:20:57 -0500 Subject: [PATCH] Signed-off-by: Matt Bruce --- .../Views/Clock/Components/TimeSegment.swift | 34 ++----------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/TheNoiseClock/Views/Clock/Components/TimeSegment.swift b/TheNoiseClock/Views/Clock/Components/TimeSegment.swift index 4269905..bc55386 100644 --- a/TheNoiseClock/Views/Clock/Components/TimeSegment.swift +++ b/TheNoiseClock/Views/Clock/Components/TimeSegment.swift @@ -20,23 +20,9 @@ struct TimeSegment: View { var body: some View { HStack(alignment: .center, spacing: 0) { - if text.count == 1 { - // For single digits, center them by adding empty space on both sides + ForEach(Array(text.enumerated()), id: \.offset) { index, character in DigitView( - digit: " ", - fontSize: fontSize, - opacity: 0, - digitColor: digitColor, - glowIntensity: glowIntensity, - fontFamily: fontFamily, - fontWeight: fontWeight, - fontDesign: fontDesign - ) - .frame(width: digitWidth) - .border(.red, width: 1) - - DigitView( - digit: text, + digit: String(character), fontSize: fontSize, opacity: clampedOpacity, digitColor: digitColor, @@ -47,22 +33,6 @@ struct TimeSegment: View { ) .frame(width: digitWidth) .border(.red, width: 1) - } else { - // For multiple digits, display them normally - ForEach(Array(text.enumerated()), id: \.offset) { index, character in - DigitView( - digit: String(character), - fontSize: fontSize, - opacity: clampedOpacity, - digitColor: digitColor, - glowIntensity: glowIntensity, - fontFamily: fontFamily, - fontWeight: fontWeight, - fontDesign: fontDesign - ) - .frame(width: digitWidth) - .border(.red, width: 1) - } } } .border(Color.green, width: 1)