---
title: detectionID
framework: cinematic
role: symbol
role_heading: Instance Property
path: cinematic/cndetection-swift.struct/detectionid
---

# detectionID

An unique identifier assigned by the Cinematic script to all detections of the same subject and detection type across time.

## Declaration

```swift
var detectionID: CNDetectionID? { get }
```

## Discussion

Discussion When you build a custom detection tract and add it to the script, the system assigns the detection ID.
