---
title: "init(definition:)"
framework: network
role: symbol
role_heading: Initializer
path: "network/nwprotocolframer/message/init(definition:)"
---

# init(definition:)

Initializes an empty message for a custom framer definition.

## Declaration

```swift
init(definition: NWProtocolFramer.Definition)
```

## See Also

### Creating Framer Messages

- [init(instance:)](network/nwprotocolframer/message/init(instance:).md)
