init(engine:settings:timeToTarget:timeToReset:)
Creates a group preset with the designated engine, settings, and fade parameters.
Declaration
init(engine: PHASEEngine, settings: [String : PHASEGroupPresetSetting], timeToTarget: Double, timeToReset: Double)Parameters
- engine:
An engine containing groups to configure with settings.
- settings:
A dictionary with preset setting values and group objects as keys. See Settings.
- timeToTarget:
A duration in which the engine fades the settings from their original value to their new value. See Timetotarget.
- timeToReset:
A duration in which the framework restores the group’s original state. See Timetoreset.