Instance Method

removePass(_:)

Removes the pass from the user’s pass library.

Declaration

func removePass(_ pass: PKPass)

Parameters

pass

The pass being removed.

Discussion

This method does nothing if your app doesn’t have the appropriate entitlement.

See Also

Adding and Removing Passes

enum PKPassLibraryAddPassesStatus

Statuses used when adding passes to the pass library.

func canAddFelicaPass() -> Bool

Returns a Boolean value that indicates whether the library can add Felica passes.

func replacePass(with: PKPass) -> Bool

Replaces a pass in the user’s pass library with the given pass.