<!--
{
  "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/init(id:date:subject:body:sender:recipients:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Suggested Actions"
    ],
    "preciseIdentifier" : "s:16SuggestedActions0aB7MessageV2id4date7subject4body6sender10recipientsACx_10Foundation4DateVAJ16AttributedStringVSgAnC11ParticipantVSayAQGtcSHRzlufc"
  },
  "title" : "init(id:date:subject:body:sender:recipients:)"
}
-->

# init(id:date:subject:body:sender:recipients:)

Creates a representation of a message that the system uses to display suggested actions.

```
init(id: some Hashable, date: Date, subject: AttributedString?, body: AttributedString, sender: SuggestedActionsMessage.Participant, recipients: [SuggestedActionsMessage.Participant])
```

## Parameters

`id`

A stable, unique identifier for the message. Common types for this identifier are
`String`, `UUID`, or a custom identifier type, but any `Hashable`
value works. The identifier must remain consistent across the lifetime of
the message and across app launches.

`date`

The date when the sender sent the message or the date your app
received it.

`subject`

The subject line of the message.

`body`

The body content of the message.

`sender`

The participant who sent the message.

`recipients`

The participants who received the message.

---

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)