init(id:configurations:defaultConfigurationId:)
Creates a configuration set from an ID, an array of configurations, and a default configuration ID.
Declaration
init(id: String, configurations: [Entity.ConfigurationCatalog.Configuration], defaultConfigurationId: String? = nil) throwsParameters
- id:
The ID of the configuration set that’s unique across all other configuration sets.
- configurations:
An array of configurations you can choose from. The configuration set stores the array in the Configurations property and doesn’t preserve the order of the array.
- defaultConfigurationId:
The ID of one of the configuration elements in the
configurationsparameter, which is the default configuration the entity initializer applies if you don’t choose a configuration from the set.
Return Value
A configuration set containing the configurations.