---
title: UNCalendarNotificationTrigger
framework: usernotifications
role: symbol
role_heading: Class
path: usernotifications/uncalendarnotificationtrigger
---

# UNCalendarNotificationTrigger

A trigger condition that causes a notification the system delivers at a specific date and time.

## Declaration

```swift
class UNCalendarNotificationTrigger
```

## Overview

Overview Create a UNCalendarNotificationTrigger object when you want to schedule the delivery of a local notification at the date and time you specify. You use an NSDateComponents object to specify only the time values that you want the system to use to determine the matching date and time. Listing 1 creates a trigger that delivers its notification every morning at 8:30. The repeating behavior is achieved by specifying true for the repeats parameter when creating the trigger. Listing 1. Creating a trigger that repeats at a specific time

## Topics

### Creating a Calendar Trigger

- [init(dateMatching:repeats:)](usernotifications/uncalendarnotificationtrigger/init(datematching:repeats:).md)

### Getting the Trigger Information

- [nextTriggerDate()](usernotifications/uncalendarnotificationtrigger/nexttriggerdate().md)
- [dateComponents](usernotifications/uncalendarnotificationtrigger/datecomponents.md)

### Initializers

- [init(dateMatchingComponents:repeats:)](usernotifications/uncalendarnotificationtrigger/init(datematchingcomponents:repeats:).md)

## Relationships

### Inherits From

- [UNNotificationTrigger](usernotifications/unnotificationtrigger.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Triggers

- [UNTimeIntervalNotificationTrigger](usernotifications/untimeintervalnotificationtrigger.md)
- [UNLocationNotificationTrigger](usernotifications/unlocationnotificationtrigger.md)
- [UNPushNotificationTrigger](usernotifications/unpushnotificationtrigger.md)
- [UNNotificationTrigger](usernotifications/unnotificationtrigger.md)
