Skip to content

Commit

Permalink
Add Xcode 14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Sep 13, 2022
1 parent db5248c commit f0795a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Get/DataLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ final class DataLoader: NSObject, URLSessionDataDelegate, URLSessionDownloadDele
userTaskDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
}

#if swift(>=5.7)
#if !os(macOS) && !targetEnvironment(macCatalyst) && swift(>=5.7)
func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask) {
if #available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *) {
handlers[task]?.delegate?.urlSession?(session, didCreateTask: task)
Expand Down

0 comments on commit f0795a2

Please sign in to comment.