---
title: endsWhenInitiatorLeaves
framework: groupactivities
role: symbol
role_heading: Type Property
path: groupactivities/groupactivitymetadata/lifetimepolicy-swift.struct/endswheninitiatorleaves
---

# endsWhenInitiatorLeaves

The activity should end when the initiator of the activity leaves.

## Declaration

```swift
static let endsWhenInitiatorLeaves: GroupActivityMetadata.LifetimePolicy
```

## Discussion

Discussion This case should be used in the rare instances where the initiator of the activity owns what is being shared; for example, activities that share photos or slides that exclusively belong to the initiator of the activity would use this so that when they leave the group session, the content will no longer be shared. important: The majority of SharePlay apps should use the automatic policy, instead.
