---
title: trackingAreaIdentifier
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spatialeventcollection/event/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.

## Declaration

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