---
title: networkAccessRequired
framework: photos
role: symbol
role_heading: Type Property
path: photos/phphotoserror-swift.struct/networkaccessrequired
---

# networkAccessRequired

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

## Declaration

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

## Discussion

Discussion Set isNetworkAccessAllowed to true to enable network access.

## See Also

### Constants

- [accessRestricted](photos/phphotoserror-swift.struct/accessrestricted.md)
- [accessUserDenied](photos/phphotoserror-swift.struct/accessuserdenied.md)
- [changeNotSupported](photos/phphotoserror-swift.struct/changenotsupported.md)
- [identifierNotFound](photos/phphotoserror-swift.struct/identifiernotfound.md)
- [internalError](photos/phphotoserror-swift.struct/internalerror.md)
- [invalidResource](photos/phphotoserror-swift.struct/invalidresource.md)
- [libraryVolumeOffline](photos/phphotoserror-swift.struct/libraryvolumeoffline.md)
- [libraryInFileProviderSyncRoot](photos/phphotoserror-swift.struct/libraryinfileprovidersyncroot.md)
- [limitExceeded](photos/phphotoserror-swift.struct/limitexceeded.md)
- [missingResource](photos/phphotoserror-swift.struct/missingresource.md)
- [multipleIdentifiersFound](photos/phphotoserror-swift.struct/multipleidentifiersfound.md)
- [networkError](photos/phphotoserror-swift.struct/networkerror.md)
- [notEnoughSpace](photos/phphotoserror-swift.struct/notenoughspace.md)
- [operationInterrupted](photos/phphotoserror-swift.struct/operationinterrupted.md)
- [persistentChangeDetailsUnavailable](photos/phphotoserror-swift.struct/persistentchangedetailsunavailable.md)
