Skip to content
Commitwise
Menu

Persistent history tracking

A Core Data feature that records every change to a store, so other contexts and processes can catch up on it.

Definition

With history tracking on, each save and batch operation is recorded as transactions. An app reads the history since its last token to merge changes made by batch requests, app extensions, other processes or CloudKit sync, then purges old history. It's also required for SwiftData and Core Data to share a store.

In practice

The app merges a "note pinned" change written by its widget when it returns to the foreground.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.