Creates a calendar trigger from the specified date components.


convenience init(dateMatching dateComponents: DateComponents, repeats: Bool)



The temporal information to use when constructing the trigger. Provide only the date components that are relevant for your trigger.


Specify false to deliver the notification one time. Specify true to reschedule the notification request each time the notification is delivered.

Return Value

A new calendar trigger based on the specified temporal information.


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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software