---
title: location
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/spatialeventcollection/event/location
---

# location

The 2D location of the event.

## Declaration

```swift
var location: CGPoint
```

## See Also

### Locating the event

- [location3D](swiftui/spatialeventcollection/event/location3d.md)
- [selectionRay](swiftui/spatialeventcollection/event/selectionray.md)
- [inputDevicePose](swiftui/spatialeventcollection/event/inputdevicepose-swift.property.md)
- [SpatialEventCollection.Event.InputDevicePose](swiftui/spatialeventcollection/event/inputdevicepose-swift.struct.md)
- [targetedEntity](swiftui/spatialeventcollection/event/targetedentity.md)
