One Logo Pool Ball
_CoreSpotlight_FoundationModels · IOS API REFERENCE

SearchSource

struct · iOS 27.0+ · SDK 27.1

struct SearchSource

A source of data for Spotlight to search. When configuring the search tool, use this type to specify whether to retrieve data from the app’s Spotlight index or from files at the specified locations. Each of the sources sets the scope of the search, along with other parameters.

Members (4)

get · iOS 27.0+

coreSpotlight

TypeScript
static get coreSpotlight(): SearchSource
Swift declaration
static var coreSpotlight: SearchSource { get }

A source that retrieves data from the app’s Spotlight index.

static · iOS 27.0+

coreSpotlight

TypeScript
static coreSpotlight27974(source: CoreSpotlightSource): SearchSource
Swift declaration
static func coreSpotlight(_ source: CoreSpotlightSource) -> SearchSource

Returns a source that retrieves data from the app’s Spotlight index.

get · iOS 27.0+

files

TypeScript
static get files(): SearchSource
Swift declaration
static var files: SearchSource { get }

A source that retrieves data from the files and directories you specify.

static · iOS 27.0+

files

TypeScript
static files47574(source: FileSource): SearchSource
Swift declaration
static func files(_ source: FileSource) -> SearchSource

Returns a source that retrieves data from the files and directories you specify.

Skipped declarations

No declarations were skipped in this snapshot.

All _CoreSpotlight_FoundationModels types →