<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GroupActivities",
  "identifier" : "/documentation/GroupActivities/GroupActivityMetadata/LifetimePolicy-swift.struct/automatic",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Group Activities"
    ],
    "preciseIdentifier" : "s:15GroupActivities0A16ActivityMetadataV14LifetimePolicyV9automaticAEvpZ"
  },
  "title" : "automatic"
}
-->

# automatic

The default lifetime policy for a group activity.

```
static let automatic: GroupActivityMetadata.LifetimePolicy
```

## Discussion

Initiators and participants will have the option to leave the activity independently
or end it for everyone.  When everyone has left the activity, it will end.

This case should be used by most apps and allows activities to continue
until all participants leave the activity – regardless of which participant
happens to have initiated the activity.

---

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)