---
title: currentActivity
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutsession/currentactivity
---

# currentActivity

The current workout activity.

## Declaration

```swift
@NSCopying var currentActivity: HKWorkoutActivity { get }
```

## Discussion

Discussion This property contains a workout activity that’s currently in progress (an activity with an endDate property set to nil). If you end the activity — for example, by calling endCurrentActivity(on:) or updateActivity(uuid:end:completion:) — the system sets this property to nil until you begin a new activity.

## See Also

### Managing workout activities

- [beginNewActivity(configuration:date:metadata:)](healthkit/hkworkoutsession/beginnewactivity(configuration:date:metadata:).md)
- [endCurrentActivity(on:)](healthkit/hkworkoutsession/endcurrentactivity(on:).md)
