---
title: "init(data:)"
framework: corenfc
role: symbol
role_heading: Initializer
path: "corenfc/nfciso7816apdu/init(data:)"
---

# init(data:)

Creates an APDU object with the data buffer containing the full APDU.

## Declaration

```swift
init?(data: Data)
```

## Parameters

- `data`: A data buffer containing the full APDU.

## Return Value

Return Value A newly initialized APDU object.

## See Also

### Creating an APDU Object

- [init(instructionClass:instructionCode:p1Parameter:p2Parameter:data:expectedResponseLength:)](corenfc/nfciso7816apdu/init(instructionclass:instructioncode:p1parameter:p2parameter:data:expectedresponselength:).md)
