<!--
{
  "availability" : [
    "iOS: 11.3.0 -",
    "iPadOS: 11.3.0 -",
    "macCatalyst: 11.3.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSContext/currentActivity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSContext(py)currentActivity"
  },
  "title" : "currentActivity"
}
-->

# currentActivity

The activity available for recording progress.

```
var currentActivity: CLSActivity? { get }
```

## Discussion

You add an activity to a context by calling the [`createNewActivity()`](/documentation/ClassKit/CLSContext/createNewActivity()) method when a person makes a new attempt at a task. You then use the context’s [`currentActivity`](/documentation/ClassKit/CLSContext/currentActivity) property to access the newly created activity. If the context has an existing activity from a previous attempt, it ceases to be available to your app as a result of creating a new one. However, the network still retains its data for reporting purposes.

Don’t store a reference to the current activity. Always use the [`currentActivity`](/documentation/ClassKit/CLSContext/currentActivity) property to get it. The object returned to you might change from time to time because of network synchronization, even when the underlying task is the same.

---

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)