Skip to content
Commitwise
Menu

App Group

A shared container that lets an app and its extensions, such as widgets, read and write the same files and defaults.

Definition

Each extension runs in its own process with its own private container. Targets that join the same App Group get a shared folder and a shared UserDefaults suite. Shared data still needs care when two processes write at the same time.

In practice

The app writes tonight's recipe to UserDefaults(suiteName: "group.com.example.recipes"), and the widget reads it from there.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.