<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UserNotifications",
  "identifier" : "/documentation/UserNotifications/UNTimeIntervalNotificationTrigger/init(timeInterval:repeats:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "User Notifications"
    ],
    "preciseIdentifier" : "c:objc(cs)UNTimeIntervalNotificationTrigger(cm)triggerWithTimeInterval:repeats:"
  },
  "title" : "init(timeInterval:repeats:)"
}
-->

# init(timeInterval:repeats:)

Creates a time interval trigger using the time value parameter.

```
convenience init(timeInterval: TimeInterval, repeats: Bool)
```

## Parameters

`timeInterval`

The time (in seconds) that must elapse from the current time before the trigger fires. This value must be greater than zero.

`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. If this parameter is <doc://com.apple.documentation/documentation/Swift/true>, the value in the `timeInterval` parameter must be 60 seconds or greater.

## Return Value

A new time interval trigger based on the specified temporal information.

## 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`](/documentation/UserNotifications/UNUserNotificationCenter) to remove notification requests that are no longer needed.

---

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)