<!--
{
  "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/SearchResultsTable",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Spotlight",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:31_CoreSpotlight_FoundationModels18SearchResultsTableV"
  },
  "title" : "SearchResultsTable"
}
-->

# SearchResultsTable

Tabulated result data — rows with typed columns for display or spreadsheet export.

```
struct SearchResultsTable
```

## Topics

### Creating the search count

[`init(header: String?, columns: [SearchResultsTable.Column], rows: [SearchResultsTable.Row])`](/documentation/CoreSpotlight/SearchResultsTable/init(header:columns:rows:))

### Getting the column and row details

[`let header: String?`](/documentation/CoreSpotlight/SearchResultsTable/header)

What this table represents (e.g., “Emails per month from John”).

[`let columns: [SearchResultsTable.Column]`](/documentation/CoreSpotlight/SearchResultsTable/columns)

Column definitions with name and type hint.

[`let rows: [SearchResultsTable.Row]`](/documentation/CoreSpotlight/SearchResultsTable/rows)

Data rows — each row’s values array matches `columns` by index.

[`struct Column`](/documentation/CoreSpotlight/SearchResultsTable/Column)

[`struct Row`](/documentation/CoreSpotlight/SearchResultsTable/Row)

### Getting cell details

[`enum Value`](/documentation/CoreSpotlight/SearchResultsTable/Value)

A cell value — typed so the host app can format, sort, or export correctly.

[`enum ValueType`](/documentation/CoreSpotlight/SearchResultsTable/ValueType)

## Relationships

### Conforms To

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

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

---

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)