---
title: DataDetector.Match.SemanticDetails.CalendarEvent
framework: datadetection
role: symbol
role_heading: Structure
path: datadetection/datadetector/match/semanticdetails/calendarevent
---

# DataDetector.Match.SemanticDetails.CalendarEvent

The values the framework returns that represent date components of a calendar event.

## Declaration

```swift
struct CalendarEvent
```

## Discussion

Discussion You can use these properties to populate an Event. The event may contain just a single date, such as a start date, but can contain both a start and end date. allDay is true if the date or date range doesn’t specify a time. startDate may contain the start date of the event. endDate may contain the end date of the event. endTimeZone may contain the time zone of the end date of the event. startTimeZone may contain the time zone of the start date of the event.

## Topics

### Calendar event properties

- [allDay](datadetection/datadetector/match/semanticdetails/calendarevent/allday.md)
- [startDate](datadetection/datadetector/match/semanticdetails/calendarevent/startdate.md)
- [endDate](datadetection/datadetector/match/semanticdetails/calendarevent/enddate.md)
- [startTimeZone](datadetection/datadetector/match/semanticdetails/calendarevent/starttimezone.md)
- [endTimeZone](datadetection/datadetector/match/semanticdetails/calendarevent/endtimezone.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
