From 763cf81f884fc6de4549a7c114931ac420b0c80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Faic=CC=A7al=20Tchirou?= Date: Sat, 16 Jan 2021 10:03:13 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Include=20watchOS=20and=20tvOS?= =?UTF-8?q?=20in=20@available=20attributes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PredicateKit.podspec | 2 +- PredicateKit/SwiftUI/SwiftUISupport.swift | 4 ++-- PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PredicateKit.podspec b/PredicateKit.podspec index 07bb8a9..e076ce3 100644 --- a/PredicateKit.podspec +++ b/PredicateKit.podspec @@ -15,7 +15,7 @@ Pod::Spec.new do |spec| spec.name = "PredicateKit" - spec.version = "1.2.0" + spec.version = "1.2.1" spec.summary = "Write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions." spec.description = <<-DESC PredicateKit allows Swift developers to write expressive and type-safe predicates for CoreData using key-paths, comparisons and logical operators, literal values, and functions. diff --git a/PredicateKit/SwiftUI/SwiftUISupport.swift b/PredicateKit/SwiftUI/SwiftUISupport.swift index 9cb55fc..fcab018 100644 --- a/PredicateKit/SwiftUI/SwiftUISupport.swift +++ b/PredicateKit/SwiftUI/SwiftUISupport.swift @@ -21,7 +21,7 @@ import CoreData import SwiftUI -@available(iOS 13.0, *) +@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) extension SwiftUI.FetchRequest where Result: NSManagedObject { /// Creates an instance by defining a fetch request based on the provided predicate and animation. /// @@ -100,7 +100,7 @@ extension SwiftUI.FetchRequest where Result: NSManagedObject { } } -@available(iOS 13.0, *) +@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) extension FetchRequest { /// Creates a fetch request using the provided predicate. /// diff --git a/PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift b/PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift index bcbf903..2db03a8 100644 --- a/PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift +++ b/PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift @@ -29,7 +29,7 @@ import XCTest // view's graph. We don't really test here that our `Predicate`s and `FetchRequest`s are properly converted to // `NSPredicate`s and `NSFetchRequest`s; we rely on the tests in `NSFetchRequestBuilderTests` and assume the conversion // correctness. Here, we just want to ensure that the view's graph will contain the expected `NSFetchRequest`. -@available(iOS 13.0, *) +@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) class SwiftUISupportTests: XCTestCase { func testFetchRequestPropertyWrapperWithBasicPredicate() throws { struct ContentView: View { @@ -191,7 +191,7 @@ private extension Date { static let now = Date() } -@available(iOS 13.0, *) +@available(iOS 13.0, watchOS 6.0, tvOS 13.0, *) private extension Transaction { static var nonContinuousEaseInOut: Transaction = { var transaction = Transaction(animation: .easeInOut)