---
title: "init(body:header:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/searchtextresult/init(body:header:)"
---

# init(body:header:)

## Declaration

```swift
init(body: String, header: String? = nil)
```
