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

# GroupSessionJournal.Attachment

A container for the data you download.

```
struct Attachment
```

## Overview

When your app receives a new item, the system packages it in an
[`GroupSessionJournal.Attachment`](/documentation/GroupActivities/GroupSessionJournal/Attachment) and delivers it to your app. Use this
container type to download the contents of the file and decode it to a type that
your app recognizes.

## Topics

### Downloading the attachment data

[`func load<AttachmentType>(AttachmentType.Type) async throws -> AttachmentType`](/documentation/GroupActivities/GroupSessionJournal/Attachment/load(_:))

Downloads the attachment data and asynchronously delivers it as the
type you specify.

[`func loadMetadata<MetadataType>(of: MetadataType.Type) async throws -> MetadataType`](/documentation/GroupActivities/GroupSessionJournal/Attachment/loadMetadata(of:))

Downloads the metadata for the attachment asynchronously and delivers it
as the type you specify.

### Identifying the attachment

[`var id: UUID`](/documentation/GroupActivities/GroupSessionJournal/Attachment/id)

The unique identifier for this attachment.

## Relationships

### Conforms To

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

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

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

---

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)