<!--
{
  "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/GroupSessionMessenger/Messages",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Group Activities",
      "GroupActivities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A16SessionMessengerC8MessagesV"
  },
  "title" : "GroupSessionMessenger.Messages"
}
-->

# GroupSessionMessenger.Messages

An asynchronous sequence of messages sent to the session.

```
struct Messages<Message> where Message : Decodable, Message : Encodable
```

## Overview

When you use a [`GroupSessionMessenger`](/documentation/GroupActivities/GroupSessionMessenger) to communicate across devices,
the `Messages` structure provides the sequence of messages the other devices
send. Iterate over the contents of this structure asynchronously
to retrieve each message and update your app.

Don’t create this structure directly. Instead, use the [`messages(of:)`](/documentation/GroupActivities/GroupSessionMessenger/messages(of:)-626qo)
or [`messages(of:)`](/documentation/GroupActivities/GroupSessionMessenger/messages(of:)-jvoz) method to retrieve the messages for a given session.

## Topics

### Creating an iterator

[`struct Iterator`](/documentation/GroupActivities/GroupSessionMessenger/Messages/Iterator)

### Finding elements

### Selecting elements

### Excluding elements

### Transforming a sequence

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

---

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)