localizedValue(forFieldKey:)
Returns the localized value for a 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 PassKit doesn’t know the keys for those passes in advance. Use the other properties of this class, such as organizationName, instead.