---
title: "init(scanRequest:results:)"
framework: wifiinfrastructure
role: symbol
role_heading: Initializer
path: "wifiinfrastructure/winetworksharingprovider/accessoryscanresponse/init(scanrequest:results:)"
---

# init(scanRequest:results:)

Creates an accessory scan response.

## Declaration

```swift
init(scanRequest: WINetworkSharingProvider.AccessoryScanRequest, results: [WINetworkSharingProvider.AccessoryScanResult])
```

## Parameters

- `scanRequest`: The original scan request.
- `results`: The list of accessory scan results.
