Skip to content

Commit

Permalink
TimecodeField: timecodeFieldInputStyle now uses appropriate defau…
Browse files Browse the repository at this point in the history
…lt for the platform
  • Loading branch information
orchetect committed Oct 17, 2024
1 parent f631aa9 commit 77cac22
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 77cac22

Please sign in to comment.