Instance Method


Returns the passes in the user’s pass library to which the app has access.


func passes() -> [PKPass]

Return Value

The passes in the user’s pass library.


Your app only has access to certain passes, based on its entitlements. Passes that your app doesn’t have access to are not returned.

The ordering of the passes is not fixed; calling this method multiple times may return the same passes but in a different order.

See Also

Accessing Passes

class func isPassLibraryAvailable() -> Bool

A Boolean value that indicates whether the pass library is available.

func containsPass(PKPass) -> Bool

Indicates whether the user’s pass library contains the specified pass.

func pass(withPassTypeIdentifier: String, serialNumber: String) -> PKPass?

Returns the pass with the given pass type identifier and serial number.

func passes(of: PKPassType) -> [PKPass]

Returns the passes of the specified pass type.

func remotePaymentPasses() -> [PKPaymentPass]

Returns a list of passes stored on a remote device.