---
title: "init(region:)"
framework: homekit
role: symbol
role_heading: Initializer
path: "homekit/hmlocationevent/init(region:)"
---

# init(region:)

Creates a new location event with the specified region.

## Declaration

```swift
init(region: CLRegion)
```

## Parameters

- `region`: Region on which the event is triggered. The region object must have at least one of doc://com.apple.documentation/documentation/CoreLocation/CLRegion/notifyOnEntry or doc://com.apple.documentation/documentation/CoreLocation/CLRegion/notifyOnExit set to doc://com.apple.documentation/documentation/Swift/true.

## Return Value

Return Value An initialized instance representing the location event.
