---
title: "updateRegion(_:completionHandler:)"
framework: homekit
role: symbol
role_heading: Instance Method
path: "homekit/hmlocationevent/updateregion(_:completionhandler:)"
---

# updateRegion(_:completionHandler:)

Changes the region associated with this event.

## Declaration

```swift
func updateRegion(_ region: CLRegion, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func updateRegion(_ region: CLRegion) async throws
```

## Parameters

- `region`: New region on which the event is triggered. 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.
- `completion`: The block executed when the region update request has been processed.
