<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreNFC",
  "identifier" : "/documentation/CoreNFC/NFCNDEFMessage/init(records:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core NFC"
    ],
    "preciseIdentifier" : "c:objc(cs)NFCNDEFMessage(im)initWithNDEFRecords:"
  },
  "title" : "init(records:)"
}
-->

# init(records:)

Creates an NDEF message with the specified records.

```
init(records: [NFCNDEFPayload])
```

## Parameters

`records`

An array of payload objects for the message. To create an empty message, pass in an empty array.

## Return Value

A newly initialized NDEF message object.

---

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)