From 77cac22cd0657aa545d439c64662786d061e7b1c Mon Sep 17 00:00:00 2001 From: Steffan Andrews Date: Wed, 16 Oct 2024 19:01:07 -0700 Subject: [PATCH] `TimecodeField`: `timecodeFieldInputStyle` now uses appropriate default for the platform --- .../TimecodeField/TimecodeField Environment.swift | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Sources/TimecodeKitUI/SwiftUI/TimecodeField/TimecodeField Environment.swift b/Sources/TimecodeKitUI/SwiftUI/TimecodeField/TimecodeField Environment.swift index bcdde845..b50d6979 100644 --- a/Sources/TimecodeKitUI/SwiftUI/TimecodeField/TimecodeField Environment.swift +++ b/Sources/TimecodeKitUI/SwiftUI/TimecodeField/TimecodeField Environment.swift @@ -38,7 +38,13 @@ extension EnvironmentValues { @available(watchOS, unavailable) @available(tvOS, unavailable) struct TimecodeFieldInputStyleKey: EnvironmentKey { - public static let defaultValue: TimecodeField.InputStyle = .autoAdvance + public static let defaultValue: TimecodeField.InputStyle = { + #if os(macOS) + .continuousWithinComponent + #else + .autoAdvance + #endif + }() } @_documentation(visibility: internal) @@ -61,7 +67,7 @@ extension EnvironmentValues { @available(watchOS, unavailable) @available(tvOS, unavailable) struct TimecodeFieldInputWrappingKey: EnvironmentKey { - public static let defaultValue: TimecodeField.InputWrapping = .wrap + public static let defaultValue: TimecodeField.InputWrapping = .noWrap } @_documentation(visibility: internal)