<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPassLibrary/isPassLibraryAvailable()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKPassLibrary(cm)isPassLibraryAvailable"
  },
  "title" : "isPassLibraryAvailable()"
}
-->

# isPassLibraryAvailable()

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

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

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the pass library is available; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method exists because the pass library may be unavailable even if the [`PKPassLibrary`](/documentation/PassKit/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 ``doc://com.apple.passkit/documentation/PassKit/PKAddPassesViewController`` class’s ``doc://com.apple.passkit/documentation/PassKit/PKAddPassesViewController/canAddPasses()`` method instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)