---
title: "after(_:)"
framework: activitykit
role: symbol
role_heading: Type Method
path: "activitykit/activityuidismissalpolicy/after(_:)"
---

# after(_:)

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

## Declaration

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

## Parameters

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

## Mentioned in

Displaying live data with Live Activities

## Discussion

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 changes to ActivityState.dismissed.

## See Also

### Dismissing a Live Activity

- [default](activitykit/activityuidismissalpolicy/default.md)
- [immediate](activitykit/activityuidismissalpolicy/immediate.md)
