---
title: "init(sendPort:receivePort:components:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/portmessage/init(sendport:receiveport:components:)"
---

# init(sendPort:receivePort:components:)

## Declaration

```swift
init(sendPort: Port?, receivePort replyPort: Port?, components: [Any]?)
```
