Improve availability check
This commit is contained in:
parent
e8c7147e2f
commit
75d1772d0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user