<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WorkoutKit",
  "identifier" : "/documentation/WorkoutKit/IntervalBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WorkoutKit"
    ],
    "preciseIdentifier" : "s:10WorkoutKit13IntervalBlockV"
  },
  "title" : "IntervalBlock"
}
-->

# IntervalBlock

Blocks of work and recovery steps that repeat in a custom workout.

```
struct IntervalBlock
```

## Topics

### Creating an interval block

[`init(steps: [IntervalStep], iterations: Int)`](/documentation/WorkoutKit/IntervalBlock/init(steps:iterations:))

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

### Accessing interval block properties

[`var steps: [IntervalStep]`](/documentation/WorkoutKit/IntervalBlock/steps)

A series of work and recovery steps for the interval block.

[`var iterations: Int`](/documentation/WorkoutKit/IntervalBlock/iterations)

The number of times the interval block repeats its steps.

### Hashing interval blocks

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)