<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SuggestedActions",
  "identifier" : "/documentation/SuggestedActions/SuggestedActionsMessage/Participant",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Suggested Actions",
      "SuggestedActions"
    ],
    "preciseIdentifier" : "s:16SuggestedActions0aB7MessageV11ParticipantV"
  },
  "title" : "SuggestedActionsMessage.Participant"
}
-->

# SuggestedActionsMessage.Participant

A sender or recipient of a message in a conversation.

```
struct Participant
```

## Overview

Create a `Participant` by providing a display name, a handle that
uniquely identifies the participant, and a Boolean value that
indicates whether the participant is the user of this device. Common handles
are phone numbers or email addresses, but you can use any string that
uniquely identifies a participant within your app’s user identity
system.

To enable the Suggested Actions to tailor the suggested actions to the person who
uses a device, make sure the `isUser` parameter of [`init(name:handle:isUser:)`](/documentation/SuggestedActions/SuggestedActionsMessage/Participant/init(name:handle:isUser:)) is `true` for
the participant that uses the device. Set `isUser` to `false` for other participants.
The following code snippet shows how an app can initialize a `Participant` who uses the current device
and a second participant who sends a message from their own device to the first participant’s device:

```swift
// The participant who uses this device.
let user = SuggestedActionsMessage.Participant(
    name: "Anne Johnson",
    handle: "annejohnson1@icloud.com",
    isUser: true
)

// A second participant, usually contact in the conversation.
let contact = SuggestedActionsMessage.Participant(
    name: "Juan Chavez",
    handle: "chavez4@icloud.com",
    isUser: false
)
```

## Topics

### Creating the participant representation

[`init(name: String, handle: String, isUser: Bool)`](/documentation/SuggestedActions/SuggestedActionsMessage/Participant/init(name:handle:isUser:))

Creates a participant in a conversation.

## Relationships

### Conforms To

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

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

---

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)