Are we allowed to reset the label color for the header field in story card Pass? #191
-
Hi, newPass.headerFields.push({
"key": "pointsBalance",
"label": "POINTS BALANCE",
"value": pointBalance,
"textAlignment": "PKTextAlignmentNatural",
"labelColor": "rgb(57, 133, 57)"
});
But autually in apple development guide, it allows the developer to modify the label color. "Pass Colors Can Be Customized Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @SamYueHW, thanks for using passkit-generator! All labels in the pass must be of the same color. In fact, {
"labelColor": "rgb(...)",
"headerFields": [ ... ]
} Hope this is helpful! |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for guiding me! |
Beta Was this translation helpful? Give feedback.
Hi @SamYueHW, thanks for using passkit-generator!
All labels in the pass must be of the same color. In fact,
labelColor
is a "global" (or "root" or "top level", as you reported) property of thepass.json
. Hence, you cannot customize the single labels.Hope this is helpful!
Let me know if I can help you any further.