Fix compiler complain that `NSSecureCodingKeyChange` is only available in iOS 11.0 or newer (#64)

This commit is contained in:
hank121314 2021-02-26 18:27:21 +08:00 committed by GitHub
parent 6546b8ec22
commit c956886bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 { }