<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHPhotosError-swift.struct/networkAccessRequired",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:SC13PHPhotosErrorLeV21networkAccessRequiredSoAAVvpZ"
  },
  "title" : "networkAccessRequired"
}
-->

# networkAccessRequired

An error that indicates the request for an asset resource failed because it requires network access.

```
static var networkAccessRequired: PHPhotosError.Code { get }
```

## Discussion

Set [`isNetworkAccessAllowed`](/documentation/Photos/PHAssetResourceRequestOptions/isNetworkAccessAllowed) to `true` to enable network access.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)