Skip to content

Glossary: SwiftUI

ModelContext

Also written: modelContext, context

The object that tracks your changes to the database: `insert` adds an object and `delete` removes one, and the main context saves automatically.

Where the book teaches it

Related terms

ModelContainer@Query@Environment