<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCancelWorkoutIntent/init(workoutName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INCancelWorkoutIntent(im)initWithWorkoutName:"
  },
  "title" : "init(workoutName:)"
}
-->

# init(workoutName:)

Initializes an intent object with the specified workout name.

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

## Parameters

`workoutName`

The name of the workout.

## Return Value

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

## Discussion

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

---

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)