---
title: passes()
framework: passkit
role: symbol
role_heading: Instance Method
path: passkit/pkpasslibrary/passes()
---

# passes()

Returns the passes in the user’s pass library that the app can access.

## Declaration

```swift
func passes() -> [PKPass]
```

## Return Value

Return Value The passes in the user’s pass library.

## Discussion

Discussion Your app only has access to certain passes according to its entitlements. PassKit doesn’t return passes that your app can’t access. Passes don’t have a fixed order. Calling this method multiple times may return the same passes, but in a different order.

## See Also

### Accessing passes

- [isPassLibraryAvailable()](passkit/pkpasslibrary/ispasslibraryavailable().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)
