<!--
{
  "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/load(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A14SessionJournalC10AttachmentV4loadyxxmYaK16CoreTransferable0H0RzlF"
  },
  "title" : "load(_:)"
}
-->

# load(_:)

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

```
func load<AttachmentType>(_ attachmentType: AttachmentType.Type) async throws -> AttachmentType where AttachmentType : Transferable
```

## Parameters

`attachmentType`

The type you use to interpret the data. An app
typically uploads and downloads a single type of data for an activity.
For more information about defining your types, see
<doc://com.apple.documentation/documentation/CoreTransferable/Transferable>.

## Return Value

A requested type that contains the downloaded information.

## Discussion

Use this function to retrieve the file or data another participant provides.
The method asynchronously retrieves and decodes the data, returning it
as the requested type. If the requested type isn’t available, the method
throws an error.

---

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)