---
title: DevicePairingView
framework: devicediscoveryui
role: symbol
role_heading: Structure
path: devicediscoveryui/devicepairingview
---

# DevicePairingView

A control that allows a user to become discoverable and advertise to local devices.

## Declaration

```swift
@MainActor @preconcurrency struct DevicePairingView<Label, Fallback> where Label : View, Fallback : View
```

## Overview

Overview A DevicePairingView should be used to become discoverable to local devices from the user through a button interface.

## Topics

### Initializers

- [init(_:access:label:fallback:)](devicediscoveryui/devicepairingview/init(_:access:label:fallback:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [View](swiftui/view.md)

## See Also

### Publishing service availability

- [Building peer-to-peer apps](wifiaware/building-peer-to-peer-apps.md)
- [DDDevicePairingViewController](devicediscoveryui/dddevicepairingviewcontroller.md)
- [DDDevicePairingAccess](devicediscoveryui/dddevicepairingaccess.md)
- [NSApplicationServices](bundleresources/information-property-list/nsapplicationservices.md)
