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

# WINetworkSharingController

A controller that enables your container app to control network-sharing functions with connected accessories.

```
class WINetworkSharingController
```

## Overview

Use the `WINetworkSharingController` class to request authorization for Wi-Fi network
sharing and to prompt people to share networks with their accessories. This class manages the
interaction between your container app and the system’s network-sharing infrastructure.

> Important:Only your container app can call the methods in this object. Your app needs the
> `com.apple.developer.wifi-infrastructure` entitlement with the `WiFiNetworkSharing` capability declared.

## Topics

### Getting the controlled accessory

[`accessory`](/documentation/WiFiInfrastructure/WINetworkSharingController/accessory)

The accessory whose network-sharing features your container app controls.

### Authorizing an accessory for network sharing

[`requestAuthorization()`](/documentation/WiFiInfrastructure/WINetworkSharingController/requestAuthorization())

Requests network-sharing authorization for the specified accessory at initial setup.

[`AuthorizationState`](/documentation/WiFiInfrastructure/WINetworkSharingController/AuthorizationState)

An enumeration that represents the authorization state for sharing Wi-Fi networks with a given accessory.

### Signaling your App Extension to ask for a network

[`askToShare()`](/documentation/WiFiInfrastructure/WINetworkSharingController/askToShare())

Signals your app extension to run and process the request to share a network.



---

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)