Instance Method

localizedValue(forFieldKey:)

Returns the localized value for specified field of the pass.

Declaration

func localizedValue(forFieldKey key: String) -> Any?

Parameters

key

The field's key, as specified in the pass.

Return Value

The localized value for the pass’s field.

Discussion

If your app works with passes from arbitrary sources, such as an email client, it can’t use this method because the keys for these passes are not known ahead of time. Use the other properties of this class, such as organizationName, instead.

See Also

Displaying a Pass

var icon: UIImage

The pass icon.

var organizationName: String

The name of the organization that created the pass.

var relevantDate: Date?

The date when the pass is most likely to be needed or useful.