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

# init(tag:records:)

Initializes a BER-TLV record with the specified tag and an array of TLV subrecords.

## Declaration

```swift
init(tag: TKTLVTag, records: [TKTLVRecord])
```

## Parameters

- `tag`: The tag field of the record.
- `records`: The TLV subrecords of the record.

## Return Value

Return Value A new TLV record containing the specified tag field and subrecords.

## See Also

### Creating TLV Records

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