---
title: "init(steps:iterations:)"
framework: workoutkit
role: symbol
role_heading: Initializer
path: "workoutkit/intervalblock/init(steps:iterations:)"
---

# init(steps:iterations:)

Creates a new interval block, in which the workout repeats the provided steps the specified number of times.

## Declaration

```swift
init(steps: [IntervalStep] = [], iterations: Int = 1)
```

## Parameters

- `steps`: A series of work and recovery steps for the interval block.
- `iterations`: The number of times the interval block repeats its steps.
