Skip to content

Commit a47f8ec

Browse files
committed
Swift 6 strict concurrency compatibility
1 parent dcaba63 commit a47f8ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/TimecodeKitUI/SwiftUI/TimecodeField/TimecodeField Paste Policy.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension TimecodeField {
3030
/// Note that the timecode returned in this result may have properties that are different from the input timecode.
3131
/// For this reason, you should accept the timecode returned from this method and not the timecode input into this
3232
/// method.
33-
static func validate(
33+
nonisolated static func validate(
3434
pasteResult: Result<Timecode, any Error>,
3535
localTimecodeProperties: Timecode.Properties,
3636
pastePolicy: PastePolicy,
@@ -75,7 +75,7 @@ extension TimecodeField {
7575
/// Note that the timecode returned in this result may have properties that are different from the input timecode.
7676
/// For this reason, you should accept the timecode returned from this method and not the timecode input into this
7777
/// method.
78-
public static func validate(
78+
nonisolated public static func validate(
7979
pastedTimecode: Timecode,
8080
localTimecodeProperties: Timecode.Properties,
8181
pastePolicy: PastePolicy = .preserveLocalProperties,
@@ -127,7 +127,7 @@ extension TimecodeField {
127127

128128
// MARK: - Private Chaining Handler
129129

130-
private static func _validate(
130+
nonisolated private static func _validate(
131131
pastedTimecode: Timecode,
132132
localTimecodeProperties: Timecode.Properties,
133133
pastePolicy: PastePolicy,

Tests/TimecodeKitUITests/TimecodeField/TimecodeField View Modifiers Syntax Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import XCTest
1818
/// If intentional changes occur to view modifiers during a refactor, this can help indicate
1919
/// the need to add API evolution deprecations or renames.
2020
@available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
21-
final class TimecodeField_View_Modifiers_Syntax_Tests: XCTestCase {
21+
@MainActor final class TimecodeField_View_Modifiers_Syntax_Tests: XCTestCase {
2222
override func setUp() { }
2323
override func tearDown() { }
2424

0 commit comments

Comments
 (0)