---
title: "init(workoutName:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inresumeworkoutintent/init(workoutname:)"
---

# init(workoutName:)

Initializes an intent object with the specified workout name.

## Declaration

```swift
init(workoutName: INSpeakableString?)
```

## Parameters

- `workoutName`: The name of the workout.

## Return Value

Return Value An initialized intent object or nil if the object could not be created.

## Discussion

Discussion Typically, you don’t create instances of this class yourself. Siri creates instances when the user asks to resume a workout. However, you can use this method during testing to create intent objects that validate your intent handling code paths.
