---
title: "init(region:repeats:)"
framework: usernotifications
role: symbol
role_heading: Initializer
path: "usernotifications/unlocationnotificationtrigger/init(region:repeats:)"
---

# init(region:repeats:)

Creates a location trigger using the region parameter.

## Declaration

```swift
convenience init(region: CLRegion, repeats: Bool)
```

## Parameters

- `region`: The geographic region that must be entered or exited. Use the region object to specify whether to deliver notifications on entry, on exit, or both.
- `repeats`: Specify doc://com.apple.documentation/documentation/Swift/false to deliver the notification one time. Specify doc://com.apple.documentation/documentation/Swift/true to reschedule the notification request each time the system delivers the notification.

## Return Value

Return Value A new location trigger object with the specified region.

## Discussion

Discussion If you specify true for the repeats parameter, you must explicitly remove the notification request to stop the delivery of the associated notification. Use the methods of UNUserNotificationCenter to remove notification requests that are no longer needed.
