tomasmcguinness / dotnet-passbook

A .Net Library for generating Apple Passbook (Wallet) files for iOS. Please get involved by creating pull requests and opening issues!
MIT License
319 stars 117 forks source link

PrimaryFields more than one #188

Closed AlexanderKrustev closed 1 year ago

AlexanderKrustev commented 1 year ago

Hello currently i cannot add more than one PrimaryField. Anyone with a similar problem?

tomasmcguinness commented 1 year ago

Do you mean the fields don't show on the pass or you get an error?

AlexanderKrustev commented 1 year ago

Oh, sorry. I am trying to generate a Generic Pass. Currently, i can add Field to the PrimaryField collection, and it looks fine in the request. However, on the pass only one field could be visible

tomasmcguinness commented 1 year ago

For generic passes, I believe you can only have one primary field. My library doesn't check the type of quantity of the fields.

https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html

Check Figure 4-5

image