networkUnavailableReason
The reason the network was unavailable for a task.
Declaration
var networkUnavailableReason: URLError.NetworkUnavailableReason? { get }Discussion
The network may be unavailable due to restrictions placed on the URLSessionConfiguration, such as allowsConstrainedNetworkAccess, allowsExpensiveNetworkAccess and allowsCellularAccess.
If the error doesn’t involve network unavailability, this property is nil.