---
title: "init(engine:settings:timeToTarget:timeToReset:)"
framework: phase
role: symbol
role_heading: Initializer
path: "phase/phasegrouppreset/init(engine:settings:timetotarget:timetoreset:)"
---

# init(engine:settings:timeToTarget:timeToReset:)

Creates a group preset with the designated engine, settings, and fade parameters.

## Declaration

```swift
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 doc://com.apple.phase/documentation/PHASE/PHASEGroupPreset/settings.
- `timeToTarget`: A duration in which the engine fades the settings from their original value to their new value. See doc://com.apple.phase/documentation/PHASE/PHASEGroupPreset/timeToTarget.
- `timeToReset`: A duration in which the framework restores the group’s original state. See doc://com.apple.phase/documentation/PHASE/PHASEGroupPreset/timeToReset.
