Contents

replacePass(with:)

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

Declaration

func replacePass(with pass: PKPass) -> Bool

Parameters

  • pass:

    The new pass.

Return Value

true if PassKit replaces the pass successfully; otherwise, false.

Discussion

The new pass replaces the existing pass with the same pass type identifier and serial number. If there isn’t such a pass in the user’s pass library, the replacement fails.

See Also

Managing passes