---
title: "init(coder:)"
framework: Playground Bluetooth
role: symbol
role_heading: Initializer
platforms: [xcode 10.2+, swift playgrounds 2.0+]
path: playgroundbluetooth/playgroundbluetoothconnectionview/3029512-init
---

# init(coder:)

Creates a connection view initialized from data you supply.

## Declaration

```swift
required init?(coder aDecoder: NSCoder)
```

## Parameters

- `coder`: An archive containing data that can be used to create a connection view.

## See Also

### Creating Connection Views

- [init(centralManager:delegate:dataSource:)](playgroundbluetooth/playgroundbluetoothconnectionview/3029511-init.md)
- [dataSource](playgroundbluetooth/playgroundbluetoothconnectionview/3029509-datasource.md)
