---
title: "init(_:step:)"
framework: workoutkit
role: symbol
role_heading: Initializer
path: "workoutkit/intervalstep/init(_:step:)"
---

# init(_:step:)

Creates a new interval step.

## Declaration

```swift
init(_ purpose: IntervalStep.Purpose, step: WorkoutStep)
```

## Parameters

- `purpose`: The purpose of this interval step.
- `step`: The workout step to perform.

## See Also

### Creating interval steps

- [init(_:goal:alert:)](workoutkit/intervalstep/init(_:goal:alert:).md)
