Skip to content

Commit

Permalink
🚑 Include watchOS and tvOS in @available attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ftchirou committed Jan 16, 2021
1 parent 960512a commit 763cf81
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion PredicateKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions PredicateKit/SwiftUI/SwiftUISupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down Expand Up @@ -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.
///
Expand Down
4 changes: 2 additions & 2 deletions PredicateKitTests/SwiftUITests/SwiftUISupportTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 763cf81

Please sign in to comment.