---
title: code
framework: intents
role: symbol
role_heading: Instance Property
path: intents/inendworkoutintentresponse/code
---

# code

The code that indicates whether you successfully handled the intent.

## Declaration

```swift
var code: INEndWorkoutIntentResponseCode { get }
```

## Discussion

Discussion This property’s value is set automatically at initialization and can’t be changed later.

## See Also

### Getting the Response Code

- [INEndWorkoutIntentResponseCode](intents/inendworkoutintentresponsecode.md)
