<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupSessionEvent/Action-swift.struct/QueueChange/Item/container(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A12SessionEventV6ActionV11QueueChangeV4ItemV9containeryAISSFZ"
  },
  "title" : "container(_:)"
}
-->

# container(_:)

Creates an item that contains the name of a container.

```
static func container(_ name: String) -> GroupSessionEvent.Action.QueueChange.Item
```

## Parameters

`name`

The name of the container.

## Discussion

When a participant changes an entire queue, call this method to create
an item with the queue name. When you show the change notice, SharePlay
displays the container name to the participant.

---

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)