<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/Transcript/AttachmentSegment/init(id:content:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models"
    ],
    "preciseIdentifier" : "s:16FoundationModels10TranscriptV17AttachmentSegmentV2id7content5labelAESS_AC0D0OSSSgtcfc"
  },
  "title" : "init(id:content:label:)"
}
-->

# init(id:content:label:)

Creates an attachment segment that wraps the content you provide.

```
init(id: String = UUID().uuidString, content: Transcript.Attachment, label: String? = nil)
```

## Parameters

`id`

A unique identifier for the segment.

`content`

The attached file or image.

`label`

An optional label that identifies the attachment.

---

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)