---
title: invalid
framework: Photos
role: symbol
role_heading: Type Property
platforms: [iOS 13.0+, iPadOS 13.0+, Mac Catalyst 13.0+, macOS 10.15+, tvOS 13.0+, visionOS 1.0+]
path: photos/phphotoserror-swift.struct/invalid
---

# invalid

The requested operation is invalid.

## Declaration

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

## See Also

### Error Codes

- [PHPhotosErrorInvalid](photos/phphotoserrorinvalid.md)
- [PHPhotosErrorLibraryVolumeOffline](photos/phphotoserrorlibraryvolumeoffline.md)
- [PHPhotosErrorRelinquishingLibraryBundleToWriter](photos/phphotoserrorrelinquishinglibrarybundletowriter.md)
- [PHPhotosErrorSwitchingSystemPhotoLibrary](photos/phphotoserrorswitchingsystemphotolibrary.md)
- [PHPhotosErrorUserCancelled](photos/phphotoserrorusercancelled.md)
