---
title: "init(tag:value:)"
framework: cryptotokenkit
role: symbol
role_heading: Initializer
path: "cryptotokenkit/tkbertlvrecord/init(tag:value:)"
---

# init(tag:value:)

Initializes a BER-TLV record with the specified tag and value.

## Declaration

```swift
init(tag: TKTLVTag, value: Data)
```

## Parameters

- `tag`: The tag field of the record.
- `value`: The value field of the record.

## Return Value

Return Value A new TLV record containing the specified tag and value fields.

## See Also

### Creating TLV Records

- [init(tag:records:)](cryptotokenkit/tkbertlvrecord/init(tag:records:).md)
- [TKTLVTag](cryptotokenkit/tktlvtag.md)
