<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFPayload/wellKnownTypeTextPayload()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core NFC",
      "CoreNFC"
    ],
    "preciseIdentifier" : "s:So14NFCNDEFPayloadC7CoreNFCE24wellKnownTypeTextPayloadSSSg_10Foundation6LocaleVSgtyF"
  },
  "title" : "wellKnownTypeTextPayload()"
}
-->

# wellKnownTypeTextPayload()

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

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

## Return Value

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

## Discussion

Use this method to get option text from a text payload.

```swift
// 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
    }
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)