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 = {