From d8a954e69ff13b0f7805f3757c8f8d0c8ef5a8cb Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 3 May 2024 20:15:27 +0700 Subject: [PATCH] Fix watchOS compatibility Fixes #175 --- Sources/Defaults/Defaults+Extensions.swift | 2 +- Tests/DefaultsTests/DefaultsColorTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Defaults/Defaults+Extensions.swift b/Sources/Defaults/Defaults+Extensions.swift index 3c75ab5..027ba73 100644 --- a/Sources/Defaults/Defaults+Extensions.swift +++ b/Sources/Defaults/Defaults+Extensions.swift @@ -145,7 +145,7 @@ extension Color: Defaults.Serializable { public static let bridge = Defaults.ColorBridge() } -@available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 9.0, visionOS 1.0, *) +@available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, visionOS 1.0, *) extension Color.Resolved: Defaults.Serializable {} extension Range: Defaults.RangeSerializable where Bound: Defaults.Serializable { diff --git a/Tests/DefaultsTests/DefaultsColorTests.swift b/Tests/DefaultsTests/DefaultsColorTests.swift index 1ea8952..89ce5e3 100644 --- a/Tests/DefaultsTests/DefaultsColorTests.swift +++ b/Tests/DefaultsTests/DefaultsColorTests.swift @@ -23,7 +23,7 @@ final class DefaultsColorTests: XCTestCase { } } -@available(macOS 14, iOS 17, tvOS 17, watchOS 9, visionOS 1.0, *) +@available(macOS 14, iOS 17, tvOS 17, watchOS 10, visionOS 1, *) final class DefaultsColorResolvedTests: XCTestCase { override func setUp() { super.setUp()