<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessorySetupKit",
  "identifier" : "/documentation/AccessorySetupKit/ASAccessorySession/showPicker(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AccessorySetupKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ASAccessorySession(im)showPickerWithCompletionHandler:"
  },
  "title" : "showPicker(completionHandler:)"
}
-->

# showPicker(completionHandler:)

Present a picker that shows accessories managed by a Device Discovery Extension in your app.

```
func showPicker(completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```
func showPicker() async throws
```

## Parameters

`completionHandler`

A block or closure that the picker calls when it completes the operation. The completion handler receives an <doc://com.apple.documentation/documentation/Foundation/NSError> instance if the picker encounters an error.

## Discussion

Use this method when your app includes a <doc://com.apple.documentation/documentation/DeviceDiscoveryExtension> for its supported accessories. If your app doesn’t use DDE, call [`showPicker(for:completionHandler:)`](/documentation/AccessorySetupKit/ASAccessorySession/showPicker(for:completionHandler:)) with an array of [`ASPickerDisplayItem`](/documentation/AccessorySetupKit/ASPickerDisplayItem) instances instead.

The session’s event handler receives events when this picker displays and dismisses, as well as when the person using the app picks an accessory.

---

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)