Contents

init(configurationSets:combinations:)

Creates a configuration catalog from in-memory entities and an array of configuration sets.

Declaration

init(configurationSets: [Entity.ConfigurationCatalog.ConfigurationSet], combinations: [Entity.ConfigurationCatalog.ConfigurationCombination]) throws

Parameters

  • configurationSets:

    The configuration choices that the configuration catalog presents. Each configuration set needs to have a unique ID from all others. The configuration catalog stores the array as the configurationSets dictionary property and doesn’t preserve its order.

  • combinations:

    The combinations of in-memory entities and the configurations that can address them. The keys you use in Configurationspecifications need to match IDs of configuration sets from the configurationSets argument. The values you use in Configurationspecifications need to match IDs of configurations from the configurationSets argument. There needs to be one Configurationcombination for each possible combination of configurations.

Return Value

A configuration catalog that maintains the provided entities in memory.