<!--
{
  "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/setUpNext(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A12SessionEventV6ActionV11QueueChangeV9setUpNextyA2G4ItemVFZ"
  },
  "title" : "setUpNext(_:)"
}
-->

# setUpNext(_:)

Returns a queue change for a new up-next item.

```
static func setUpNext(_ item: GroupSessionEvent.Action.QueueChange.Item) -> GroupSessionEvent.Action.QueueChange
```

## Parameters

`item`

The next item in the queue.

## Return Value

A type that contains information about the change.

## Discussion

Before showing a notice to the user, call this method to
generate a type for the changed up-next item. Pass this type to the
[`updatedQueue(_:)`](/documentation/GroupActivities/GroupSessionEvent/Action-swift.struct/updatedQueue(_:)) method to
create the postable action.

---

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)