<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFTag/readNDEF(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(pl)NFCNDEFTag(im)readNDEFWithCompletionHandler:"
  },
  "title" : "readNDEF(completionHandler:)"
}
-->

# readNDEF(completionHandler:)

Retrieves an NDEF message from the tag.

```
func readNDEF(completionHandler: @escaping @Sendable (NFCNDEFMessage?, (any Error)?) -> Void)
```

```
func readNDEF() async throws -> NFCNDEFMessage
```

## Parameters

`completionHandler`

The handler invoked by the reader session that provides the NDEF message. The handler has the following parameters:

- message: An [`NFCNDEFMessage`](/documentation/CoreNFC/NFCNDEFMessage) object, or `nil` if an error occurs while retrieving the message.
- error: An <doc://com.apple.documentation/documentation/Foundation/NSError> object if the read request fails; otherwise, `nil`.

    The session calls     `completionHandler`     on the dispatch queue provided when creating the [`NFCNDEFReaderSession`](/documentation/CoreNFC/NFCNDEFReaderSession)    .

---

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)