There’s a new “create a pass” feature in Apple Wallet for iOS 27, and I just used it to add library cards, with barcodes.

Here are the instructions from Apple’s website for how to create a pass in Wallet.

The “standard” template works well for library cards.