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]) throwsParameters
- 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
configurationSetsdictionary 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
configurationSetsargument. The values you use in Configurationspecifications need to match IDs of configurations from theconfigurationSetsargument. There needs to be one Configurationcombination for each possible combination of configurations.
Return Value
A configuration catalog that maintains the provided entities in memory.