Improve availability check

This commit is contained in:
Christoph Hagen 2022-06-22 08:41:01 +02:00
parent e8c7147e2f
commit 75d1772d0e

View File

@ -167,7 +167,7 @@ public final class PushClient {
private func data(for request: URLRequest) async throws -> (Data, URLResponse) {
#if !canImport(FoundationNetworking)
if #available(iOS 15.0, *) {
if #available(iOS 15.0, macOS 12.0, *) {
return try await URLSession.shared.data(for: request)
}
#endif