<!--
{
  "availability" : [
    "iOS: 26.2.0 -",
    "iPadOS: 26.2.0 -",
    "macCatalyst: 26.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiInfrastructure",
  "identifier" : "/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Infrastructure"
    ],
    "preciseIdentifier" : "s:18WiFiInfrastructure24WINetworkSharingProviderC21AccessoryScanResponseV"
  },
  "title" : "WINetworkSharingProvider.AccessoryScanResponse"
}
-->

# WINetworkSharingProvider.AccessoryScanResponse

A scan response from the accessory containing Wi-Fi scan results, if any.

```
struct AccessoryScanResponse
```

## Overview

An `AccessoryScanResponse` contains the Wi-Fi networks your accessory discovered during scanning.
The system uses these results to enhance the network selection interface, showing signal strength
and compatibility information to help people choose the best networks to share.

Create responses that correspond to specific scan requests and include all relevant networks your
accessory found. Include signal strength information to help people select networks with good
connectivity from your accessory’s perspective.

## Topics

### Identifying a scan response

[`typealias ID`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse/ID-swift.typealias)

The type of value that uniquely identifies this scan response.

[`var id: WINetworkSharingProvider.AccessoryScanResponse.ID`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse/id-swift.property)

A stable identifier that uniquely identifies this scan response.

### Getting the originating scan request

[`let scanRequest: WINetworkSharingProvider.AccessoryScanRequest`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse/scanRequest)

The original scan request that prompted this response.

### Getting the scan results from the Accessory

[`let results: [WINetworkSharingProvider.AccessoryScanResult]`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse/results)

An array of scan results containing access points the accessory has discovered.

### Initializers

[`init(scanRequest: WINetworkSharingProvider.AccessoryScanRequest, results: [WINetworkSharingProvider.AccessoryScanResult])`](/documentation/WiFiInfrastructure/WINetworkSharingProvider/AccessoryScanResponse/init(scanRequest:results:))

Creates an accessory scan response.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)