---
title: wellKnownTypeTextPayload()
framework: corenfc
role: symbol
role_heading: Instance Method
path: corenfc/nfcndefpayload/wellknowntypetextpayload()
---

# wellKnownTypeTextPayload()

Returns the text and locale of a valid Well Known Type Text payload.

## Declaration

```swift
func wellKnownTypeTextPayload() -> (String?, Locale?)
```

## Return Value

Return Value A tuple containing a string and locale from a Well Known Type Text payload. The string and locale can be nil.

## Discussion

Discussion Use this method to get option text from a text payload. // Get the optional informational text from the text payload. var additionInfo: String? = nil

for payload in message.records {     (additionInfo, _) = payload.wellKnownTypeTextPayload()          if additionInfo != nil {         break     } }
