<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDDevice/supportsGrouping",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)DDDevice(py)supportsGrouping"
  },
  "title" : "supportsGrouping"
}
-->

# supportsGrouping

A Boolean value that indicates whether to group the device with others in the AirPlay UI.

```
var supportsGrouping: Bool { get set }
```

## Discussion

This property provides a convenient way to send the same media stream to multiple devices and list them as a group in the AirPlay UI (<doc://com.apple.documentation/documentation/AVKit/AVRoutePickerView>). For example, a set of speakers arranged around the room can implement stereo playback by each playing different audio channels from an audio stream.

When someone selects a media receiver in the AirPlay menu, the system checks if it supports grouping. If so, the AirPlay UI displays a checkbox next to any other media receivers that also support grouping and implement the same protocol ([`DDDevice.Protocol`](/documentation/DeviceDiscoveryExtension/DDDevice/Protocol-swift.enum)).

If a person selects multiple devices in the menu, the selected devices reorder next to each other in the list.

> Note:
> Implement ``doc://com.apple.devicediscoveryextension/documentation/DeviceDiscoveryExtension/DDDiscoveryExtension/didReceiveEvent(_:)`` in the ``doc://com.apple.devicediscoveryextension/documentation/DeviceDiscoveryExtension/DDDiscoveryExtension`` to detect when a person changes the device grouping using the AirPlay UI.

---

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)