<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ActivityKit",
  "identifier" : "/documentation/ActivityKit/ActivityUIDismissalPolicy/after(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "ActivityKit"
    ],
    "preciseIdentifier" : "s:11ActivityKit0A17UIDismissalPolicyV5afteryAC10Foundation4DateVFZ"
  },
  "title" : "after(_:)"
}
-->

# after(_:)

The system removes the Live Activity that ended at the specified time within a four-hour window.

```
static func after(_ date: Date) -> ActivityUIDismissalPolicy
```

## Parameters

`date`

A date within a four-hour window from the moment the Live Activity ends.

## Discussion

Provide a date to tell the system when it should remove a Live Activity that ended. While you can
provide any date, the system removes a Live Activity that ended after the specified date or after four
hours from the moment the Live Activity ended — whichever comes first. When the system
removes the Live Activity,  the [`ActivityState`](/documentation/ActivityKit/ActivityState) changes to [`ActivityState.dismissed`](/documentation/ActivityKit/ActivityState/dismissed).

---

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)