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)