<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryUI",
  "identifier" : "/documentation/DeviceDiscoveryUI/DevicePicker/init(_:access:onSelect:label:fallback:parameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "DeviceDiscoveryUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:024_DeviceDiscoveryUI_SwiftC00A6PickerV_6access8onSelect5label8fallback10parametersACyxq_Gqd___0abC021DDDevicePairingAccessVy8EndpointQyd__cxyXEq_yXE7Network12NWParametersCycSgtcAO15BrowserProviderRd__lufc"
  },
  "title" : "init(_:access:onSelect:label:fallback:parameters:)"
}
-->

# init(_:access:onSelect:label:fallback:parameters:)

Creates a view that displays the available devices with the access level, section handler, and other parameters you supply.

```
@MainActor @preconcurrency init<Provider>(_ browserProvider: Provider, access: DDDevicePairingAccess = .default, onSelect: @escaping (Provider.Endpoint) -> Void, @ViewBuilder label: () -> Label, @ViewBuilder fallback: () -> Fallback, parameters: (() -> NWParameters)? = nil) where Provider : BrowserProvider
```

## Parameters

`browserProvider`

An object that conforms to the <doc://com.apple.documentation/documentation/Network/BrowserProvider> protocol and implements a specific network browser type.

`access`

The [`DDDevicePairingAccess`](/documentation/DeviceDiscoveryUI/DDDevicePairingAccess) access level. The default is `DDDevicePairingAccess.default`.

`onSelect`

A closure that the framework calls when someone selects a device in the picker view, or cancels the view.

`label`

A label the network device picker displays.

`fallback`

A view that the framework displays if the current device doesn’t support device discovery.

`parameters`

Parameters for your network connection. Use <doc://com.apple.documentation/documentation/Network/NWParameters/applicationService> to create a default set of parameters that create an encrypted connection with the other devices. You can also add a <doc://com.apple.documentation/documentation/Network/NWProtocolFramer> to provide an application-level messaging protocol.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)