---
title: PHPhotosErrorSwitchingSystemPhotoLibrary
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/phphotoserrorswitchingsystemphotolibrary
---

# PHPhotosErrorSwitchingSystemPhotoLibrary

The photo library is unavailable because the user switched the system photo library.

## Declaration

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

## See Also

### Error Codes

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