Skip to main content
Create one with IndexOptions() and set what you want to change. Changing options later changes the index in place: a wider window or a new media type indexes what is missing, a narrower one removes what falls outside. See Index options.

Properties

Window
default:".growing(from: .months(3))"
Which capture dates the index holds.
[MediaType]
default:"[.photos, .screenshots, .videos]"
Which kinds of captures to index.
Focus
default:".everything"
.food indexes only photos of food.
Bool
default:"true"
Resolve venues, cuisines, neighborhoods and cities. Sends Rollup’s server the 0.01 degree cells photos were taken in. Off, indexing sends no location: photos are placed in their country and the nearest city of 15,000 people or more, from geography on the device. Turning it on or off rebuilds the index.
Bool
default:"false"
Look up the concert, festival or game a visit at a venue was for. Needs places. Sends Rollup’s server the names and addresses of venues near such visits and the visits’ times. Turning it on or off rebuilds the index.
Bool
default:"false"
Group the faces in photos into people, on the iPhone. Downloads a face model (about 13 MB) only when on. What it keeps never leaves the iPhone. Turning it on or off rebuilds the index. See Person.
Bool
default:"true"
Read screenshot entities with Apple’s on-device model, where Apple Intelligence is available.
Bool
default:"true"
Index videos saved from editing apps like TikTok, CapCut or iMovie. Off, only videos filmed on the iPhone are indexed. Videos stored only in iCloud are judged by their file name, which catches fewer.
Bool
default:"true"
Allow every download over cellular data, the first-run models included.
Bool
default:"true"
Add new photos on library changes while your app runs, and in background processing runs.
Bool
default:"true"
Send Rollup’s server a report after each indexing run: timings, counts, the outcome and error codes, how many searches ran, the SDK and iOS versions and the device model. Never photos, labels, places or text. Off, no report is sent and those waiting are deleted.
Int?
default:"nil"
The most photos the index holds. The oldest are removed beyond it.
BackgroundProgress
default:"BackgroundProgress()"
The title and subtitle of the system progress UI while indexing continues in the background.

Window

case
The first index reaches back from the day it is first built, and new photos keep being added. Nothing ages out.
case
Only the most recent span. Older photos are removed as time passes.
Encodes as {"type":"growing","span":{"unit":"months","value":3}}.

Span

A length of time back from a day. Create one with .days(_:), .weeks(_:), .months(_:) or .years(_:), or Span(_ value: Int, _ unit: Unit).
Unit
.days, .weeks, .months or .years.
Int
How many units.
func -> Date
The first day of the span that ends on a given day, at its start of day, in a calendar (.current by default).

MediaType

Focus

BackgroundProgress

The subtitle defaults to the indexing progress when it is nil.