<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SpatialEventCollection/Event/trackingAreaIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22SpatialEventCollectionV0D0V020_CompositorServices_aB0E22trackingAreaIdentifierSo03cp_H16_area_identifieravp"
  },
  "title" : "trackingAreaIdentifier"
}
-->

# trackingAreaIdentifier

The tracking area identifier of the event, if the gesture is attached
to a `CompositorLayer`, or `nil` if the event didn’t hit a tracking area
or the gesture isn’t attached to a `CompositorLayer`.

```
var trackingAreaIdentifier: LayerRenderer.Drawable.TrackingArea.Identifier { get }
```

---

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)