One Logo Pool Ball
_CoreSpotlight_FoundationModels · IOS API REFERENCE

SearchStatistic

struct · iOS 27.0+ · SDK 27.1

struct SearchStatistic

A scalar statistic derived from search results (sum, average, max, min, median, stddev).

Members (4)

init · iOS 27.0+

init

TypeScript
static init(name: string, value: number, header?: (string) | null): SearchStatistic
Swift declaration
init(name: String, value: Double, header: String? = nil)
get · iOS 27.0+

name

TypeScript
get name(): string
Swift declaration
let name: String

The statistic name (e.g., "average", "max", "total").

get · iOS 27.0+

value

TypeScript
get value(): number
Swift declaration
let value: Double

The computed value.

get · iOS 27.0+

header

TypeScript
get header(): (string) | null
Swift declaration
let header: String?

A short description of what was computed (e.g., "Average file size").

Skipped declarations

No declarations were skipped in this snapshot.

All _CoreSpotlight_FoundationModels types →