---
title: lifetime
framework: Compute Graph
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/elementspawnparameters/lifetime
---

# lifetime

The initial lifetime of the particle in seconds.

## Declaration

```swift
var lifetime: Float { get set }
```

## Discussion

Discussion This determines how long the particle will exist before being automatically removed from the simulation. A value of 0 or negative means the particle will be removed immediately or never spawn.
