Replaces a pass in the user’s pass library with the given pass.
SDKs
- iOS 6.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Pass
Kit (Apple Pay and Wallet)
Declaration
Parameters
pass
The new pass.
Return Value
true
if the pass was replaced successfully; otherwise, false
.
Discussion
The new pass replaces the existing pass with the same pass type identifier and serial number. If there is no such pass in the user’s pass library, the replacement fails.