---
title: switchingSystemPhotoLibrary
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/switchingsystemphotolibrary
---

# switchingSystemPhotoLibrary

An error that indicates the photo library isn’t available because the user switched the system’s photo library.

## Declaration

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

## 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)
- [networkAccessRequired](photos/phphotoserror-swift.struct/networkaccessrequired.md)
- [networkError](photos/phphotoserror-swift.struct/networkerror.md)
- [notEnoughSpace](photos/phphotoserror-swift.struct/notenoughspace.md)
- [operationInterrupted](photos/phphotoserror-swift.struct/operationinterrupted.md)
