<!--
{
  "availability" : [
    "tvOS: 16.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryUI",
  "identifier" : "/documentation/DeviceDiscoveryUI/DevicePickerSupportedAction",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DeviceDiscoveryUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:024_DeviceDiscoveryUI_SwiftC00A21PickerSupportedActionV"
  },
  "title" : "DevicePickerSupportedAction"
}
-->

# DevicePickerSupportedAction

An environment value that indicates whether the current device supports device discovery.

```
struct DevicePickerSupportedAction
```

## Overview

Access the action using the `.devicePickerSupports` key. Then call it as a function, passing the same browse descriptor and parameters you use to search for devices.

```swift
struct SettingsView: View {

    @Environment{\.devicePickerSupports} var myDevicePickerSupports
    @Binding var showDevicePicker: Bool

    var body: some View {
        if myDevicePickerSupports(.applicationService("MyAppService"),
                                  parameters: { .applicationService }) {
            Button("Select A Device") {
                // Display a device picker.
                showDevicePicker = true
            }
        }
    }
}
```

## Topics

### Checking for support

[`func callAsFunction(NWBrowser.Descriptor, parameters: (() -> NWParameters)?) -> Bool`](/documentation/DeviceDiscoveryUI/DevicePickerSupportedAction/callAsFunction(_:parameters:))

Returns a Boolean value that indicates whether the current device supports device discovery.



---

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)