I am using this API to add multiple grouped passes to Apple Wallet. I realized that added passes in the wallet doesn't follow the order of array [PKPass] that I gave it to this API.
public func addPasses(passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)
The interesting thing to note here is when I tap on View All
before adding the passes it does show all the passes in order but after tapping on Add All
and then launch the Wallet app to see the order od added pass it's not same anymore.
Any clue why this is happening and how to maintain an order?