mainContext A model context that’s bound to app’s main actor. Declaration@MainActor var mainContext: ModelContext { get } Mentioned inReverting data changes using the undo manager