From 14f8c13f3ccd3cb809a2be0d34a31633081cda6a Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 11 Sep 2025 16:13:26 -0500 Subject: [PATCH] Signed-off-by: Matt Bruce --- TheNoiseClock/Core/Extensions/View+Extensions.swift | 6 +++++- TheNoiseClock/Views/Clock/Components/TimeDisplayView.swift | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TheNoiseClock/Core/Extensions/View+Extensions.swift b/TheNoiseClock/Core/Extensions/View+Extensions.swift index 42603a7..cda4354 100644 --- a/TheNoiseClock/Core/Extensions/View+Extensions.swift +++ b/TheNoiseClock/Core/Extensions/View+Extensions.swift @@ -128,7 +128,11 @@ struct OrientationChangeModifier: ViewModifier { func body(content: Content) -> some View { content .onReceive(NotificationCenter.default.publisher(for: UIDevice.orientationDidChangeNotification)) { _ in - orientation = UIDevice.current.orientation + let newOrientation = UIDevice.current.orientation + // Don't update on face down orientation to prevent redraw when putting phone down + if newOrientation != .faceUp && newOrientation != .faceDown { + orientation = newOrientation + } } .id(orientation.rawValue) // Force view recreation on orientation change } diff --git a/TheNoiseClock/Views/Clock/Components/TimeDisplayView.swift b/TheNoiseClock/Views/Clock/Components/TimeDisplayView.swift index 6a18bb0..39a6eb8 100644 --- a/TheNoiseClock/Views/Clock/Components/TimeDisplayView.swift +++ b/TheNoiseClock/Views/Clock/Components/TimeDisplayView.swift @@ -23,7 +23,7 @@ struct TimeDisplayView: View { let fontWeight: Font.Weight let fontDesign: Font.Design let forceHorizontalMode: Bool - @State var fontSize: CGFloat = 1000 + @State var fontSize: CGFloat = 100 // MARK: - Formatters private static let hour24DF: DateFormatter = {