<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupSessionJournal/add(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A14SessionJournalC3addyAC10AttachmentVxYaK16CoreTransferable0H0RzlF"
  },
  "title" : "add(_:)"
}
-->

# add(_:)

Adds the specified item to the journal and begins transferring the
item’s data to the other participants’ devices so they can access it.

```
final func add<ItemType>(_ item: ItemType) async throws -> GroupSessionJournal.Attachment where ItemType : Transferable
```

## Parameters

`item`

The item to send to other session participants. The type
you specify must conform to the <doc://com.apple.documentation/documentation/CoreTransferable/Transferable>
protocol. For more information about creating transferable types,
see <doc://com.apple.documentation/documentation/CoreTransferable>.

## Return Value

An attachment object you can remove by passing it to the [`remove(attachment:)`](/documentation/GroupActivities/GroupSessionJournal/remove(attachment:)) function.

## Discussion

Call this method when you want to send a file or codable data type to the
other participants of an activity. The method runs asynchronously and can return
before the upload operation finishes.

---

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)