---
title: "continuityDevicePicker(isPresented:onDidConnect:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/continuitydevicepicker(ispresented:ondidconnect:)"
---

# continuityDevicePicker(isPresented:onDidConnect:)

A continuityDevicePicker should be used to discover and connect nearby continuity device through a button interface or other form of activation. On tvOS, this presents a fullscreen continuity device picker experience when selected. The modal view covers as much the screen of self as possible when a given condition is true.

## Declaration

```swift
@MainActor @preconcurrency func continuityDevicePicker(isPresented: Binding<Bool>, onDidConnect: ((AVContinuityDevice?) -> Void)? = nil) -> some View

```

## Parameters

- `isPresented`: A Binding to whether the modal view is presented.
- `onDidConnect`: A closure executed when the picker successfully, connects AVContinuityDevice or nil if cancelled by a user.

## See Also

### Displaying media

- [CameraView](homekit/cameraview.md)
- [NowPlayingView](watchkit/nowplayingview.md)
- [VideoPlayer](avkit/videoplayer.md)
- [cameraAnchor(isActive:)](swiftui/view/cameraanchor(isactive:).md)
- [foveatedStreamingPauseSheet(session:)](swiftui/view/foveatedstreamingpausesheet(session:).md)
