PassFieldContent
An object that represents the information to display in a field on a pass.
Declaration
object PassFieldContentProperties
| Name | Type | Description |
|---|---|---|
attributedValue | localizable string, ISO 8601 date, or number | The value of the field, including HTML markup for links. The only supported tag is the For example, the following is a key-value pair that specifies a link with the text “Edit my profile”:
The attributed value isn’t used for watchOS; use the |
changeMessage | Localizable format string | A format string for the alert text to display when the pass updates. The format string needs to contain the escape You need to provide a value for the system to show a change notification. This field isn’t used for watchOS. |
currencyCode | ISO 4217 currency code as a string | The currency code to use for the value of the field. |
dataDetectorTypes | [string] | The data detectors to apply to the value of a field on the back of the pass. The default is to apply all data detectors. To use no data detectors, specify an empty array. You don’t use data detectors for fields on the front of the pass. This field isn’t used for watchOS. |
dateStyle | string | The style of the date to display in the field. |
ignoresTimeZone | boolean | A Boolean value that controls the time zone for the time and date to display in the field. The default value is This key doesn’t affect the pass relevance calculation. |
isRelative | boolean | A Boolean value that controls whether the date appears as a relative date. The default value is This key doesn’t affect the pass relevance calculation. |
key Required | string | A unique key that identifies a field in the pass; for example, |
label | localizable string | The text for a field label. |
numberStyle | string | The style of the number to display in the field. Formatter styles have the same meaning as the formats with corresponding names in doc://com.apple.documentation/documentation/foundation/numberformatter/style. |
textAlignment | string | The alignment for the content of a field. The default is natural alignment, which aligns the text based on its script direction. This key is invalid for primary and back fields. |
timeStyle | string | The style of the time displayed in the field. |
value Required | localizable string, ISO 8601 date, or number | The value to use for the field; for example, |