From c956886bba053c40d9915891812b5620526409f9 Mon Sep 17 00:00:00 2001 From: hank121314 Date: Fri, 26 Feb 2021 18:27:21 +0800 Subject: [PATCH] Fix compiler complain that `NSSecureCodingKeyChange` is only available in iOS 11.0 or newer (#64) --- Sources/Defaults/Observation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Defaults/Observation.swift b/Sources/Defaults/Observation.swift index ac9e1a2..345e785 100644 --- a/Sources/Defaults/Observation.swift +++ b/Sources/Defaults/Observation.swift @@ -447,10 +447,10 @@ extension Defaults.ObservationOptions { } } -@available(macOS 10.13, macOSApplicationExtension 10.13, watchOSApplicationExtension 4.0, *) +@available(iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0, iOSApplicationExtension 11.0, macOSApplicationExtension 10.13, tvOSApplicationExtension 11.0, watchOSApplicationExtension 4.0, *) extension Defaults.NSSecureCodingKeyChange: Equatable where Value: Equatable { } -@available(macOS 10.13, macOSApplicationExtension 10.13, watchOSApplicationExtension 4.0, *) +@available(iOS 11.0, macOS 10.13, tvOS 11.0, watchOS 4.0, iOSApplicationExtension 11.0, macOSApplicationExtension 10.13, tvOSApplicationExtension 11.0, watchOSApplicationExtension 4.0, *) extension Defaults.NSSecureCodingOptionalKeyChange: Equatable where Value: Equatable { } extension Defaults.KeyChange: Equatable where Value: Equatable { }