---
title: PHPhotosErrorUserCancelled
framework: Photos
role: symbol
role_heading: Global Variable
platforms: [iOS 13.0+, iPadOS 13.0+, Mac Catalyst 13.0+, macOS 10.15+, tvOS 13.0+, visionOS 1.0+]
path: photos/phphotoserrorusercancelled
---

# PHPhotosErrorUserCancelled

The user canceled the asset retrieval or editing request.

## Declaration

```swift
var PHPhotosErrorUserCancelled: Int { get }
```

## See Also

### Error Codes

- [invalid](phphotoserror-swift.struct/invalid.md)
- [PHPhotosErrorInvalid](phphotoserrorinvalid.md)
- [PHPhotosErrorLibraryVolumeOffline](phphotoserrorlibraryvolumeoffline.md)
- [PHPhotosErrorRelinquishingLibraryBundleToWriter](phphotoserrorrelinquishinglibrarybundletowriter.md)
- [PHPhotosErrorSwitchingSystemPhotoLibrary](phphotoserrorswitchingsystemphotolibrary.md)
