---
title: "init(records:)"
framework: corenfc
role: symbol
role_heading: Initializer
path: "corenfc/nfcndefmessage/init(records:)"
---

# init(records:)

Creates an NDEF message with the specified records.

## Declaration

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

Return Value A newly initialized NDEF message object.

## See Also

### Creating an NDEF Message

- [init(data:)](corenfc/nfcndefmessage/init(data:).md)
