<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INSpatialEventTrigger",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INSpatialEventTrigger"
  },
  "title" : "INSpatialEventTrigger"
}
-->

# INSpatialEventTrigger

A trigger condition based on the user’s arrival or departure from a given location.

```
class INSpatialEventTrigger
```

## Overview

When configuring tasks, you can add an [`INSpatialEventTrigger`](/documentation/Intents/INSpatialEventTrigger) object to display a reminder when the user approaches or leaves a specific location. Spatial event triggers rely on location services to generate events.

## Topics

### Initializing an Event Trigger

[`init(placemark: CLPlacemark, event: INSpatialEvent)`](/documentation/Intents/INSpatialEventTrigger/init(placemark:event:))

Initializes the event trigger with the specified location-based information.

### Getting the Trigger Condition

[`var placemark: CLPlacemark`](/documentation/Intents/INSpatialEventTrigger/placemark)

The location that triggers an event.

[`var event: INSpatialEvent`](/documentation/Intents/INSpatialEventTrigger/event)

The conditions which trigger an event for the specified location.

[`enum INSpatialEvent`](/documentation/Intents/INSpatialEvent)

Constants indicating when to deliver location-related events.

### Initializers

[`init?(coder: NSCoder)`](/documentation/Intents/INSpatialEventTrigger/init(coder:))

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)