---
title: isPassLibraryAvailable()
framework: passkit
role: symbol
role_heading: Type Method
path: passkit/pkpasslibrary/ispasslibraryavailable()
---

# isPassLibraryAvailable()

Returns a Boolean value that indicates whether the pass library is available.

## Declaration

```swift
class func isPassLibraryAvailable() -> Bool
```

## Return Value

Return Value true if the pass library is available; otherwise, false.

## Discussion

Discussion This method exists because the pass library may be unavailable even if the PKPassLibrary class exists. note: Don’t use this method to determine whether the user can add passes on the device. A device may have a pass library, but still not be able to add passes. Use the PKAddPassesViewController class’s canAddPasses() method instead.

## See Also

### Accessing passes

- [passes()](passkit/pkpasslibrary/passes().md)
- [passes(of:)](passkit/pkpasslibrary/passes(of:).md)
- [pass(withPassTypeIdentifier:serialNumber:)](passkit/pkpasslibrary/pass(withpasstypeidentifier:serialnumber:).md)
- [containsPass(_:)](passkit/pkpasslibrary/containspass(_:).md)
- [serviceProviderData(for:completion:)](passkit/pkpasslibrary/serviceproviderdata(for:completion:).md)
- [remoteSecureElementPasses](passkit/pkpasslibrary/remotesecureelementpasses.md)
