Contents

identifier(_:)

Tells SwiftData to use the specified group container as the root location for the app’s persistent storage.

Declaration

static func identifier(_ groupName: String) -> ModelConfiguration.GroupContainer

Parameters

  • groupName:

    The identifier of the group container to use. You find these in the App Groups capabilities section of your Xcode project. For more information, see Configuring App Groups.

See Also

Getting discovery options