<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/SearchPipelineData/init(payload:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels18SearchPipelineDataV7payloadA2C7PayloadO_tcfc"
  },
  "title" : "init(payload:)"
}
-->

# init(payload:)

Initializes the pipeline data with the specified payload value.

```
init(payload: SearchPipelineData.Payload)
```

## Parameters

`payload`

The data your custom stage produced as its output. Use the [`SearchPipelineData.Payload`](/documentation/CoreSpotlight/SearchPipelineData/Payload-swift.enum)
type to construct this value.

---

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)