Skip to content

Commit

Permalink
main Fix availability checks
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHearst committed Jul 1, 2022
1 parent 6f9961c commit 60d3fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/ScryfallKit/Networking/NetworkService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum NetworkLogLevel {

protocol NetworkServiceProtocol {
func request<T : Decodable>(_ request: EndpointRequest, as type: T.Type, completion: @escaping (Result<T, Error>) -> Void)
@available(macOS 10.15.0, *)
@available(macOS 10.15.0, *, iOS 13.0.0, *)
func request<T : Decodable>(_ request: EndpointRequest, as type: T.Type) async throws -> T
}

Expand Down Expand Up @@ -81,7 +81,7 @@ struct NetworkService: NetworkServiceProtocol {
task.resume()
}

@available(macOS 10.15.0, *)
@available(macOS 10.15.0, *, iOS 13.0.0, *)
func request<T : Decodable>(_ request: EndpointRequest, as type: T.Type) async throws -> T {
try await withCheckedThrowingContinuation { continuation in
self.request(request, as: type) { result in
Expand Down
2 changes: 1 addition & 1 deletion Sources/ScryfallKit/ScryfallClient+Async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

@available(macOS 10.15.0, *)
@available(macOS 10.15.0, *, iOS 13.0.0, *)
extension ScryfallClient {
public func searchCards(filters: [CardFieldFilter],
unique: UniqueMode? = nil,
Expand Down

0 comments on commit 60d3fb3

Please sign in to comment.