---
title: "init(_:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/nwtxtrecord/init(_:)-566pd"
---

# init(_:)

Initializes a TXT record with a dictionary of strings.

## Declaration

```swift
init(_ dictionary: [String : String] = [:])
```

## See Also

### Creating TXT Records

- [removeEntry(key:)](network/nwtxtrecord/removeentry(key:).md)
- [setEntry(_:for:)](network/nwtxtrecord/setentry(_:for:).md)
- [NWTXTRecord.Entry](network/nwtxtrecord/entry.md)
