<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "EventKitUI",
  "identifier" : "/documentation/EventKitUI/EKEventViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "EventKit UI"
    ],
    "preciseIdentifier" : "c:objc(cs)EKEventViewController"
  },
  "title" : "EKEventViewController"
}
-->

# EKEventViewController

A view controller for displaying existing calendar and reminder events, and for optionally editing those events.

```
class EKEventViewController
```

## Overview

The event view controller’s primary purpose is to present to the user a modal display containing the details of a calendar event. The view controller lets you set whether users may edit an event and, if the event is an invitation and the organizer is not the user, you can decide whether to show a preview of the event.

The event view controller includes delegates used to receive a notification when closing the view controller. The delegate must conform to the [`EKEventViewDelegate`](/documentation/EventKitUI/EKEventViewDelegate) protocol.

## Topics

### Dismissing the Event Interface

[`delegate`](/documentation/EventKitUI/EKEventViewController/delegate)

The event view controller’s delegate.

[`EKEventViewDelegate`](/documentation/EventKitUI/EKEventViewDelegate)

Delegates used to display details for calendar events.

### Getting and Setting the Event

[`event`](/documentation/EventKitUI/EKEventViewController/event)

The event this view controller displays to the user.

### Displaying and Editing Event Previews

[`allowsCalendarPreview`](/documentation/EventKitUI/EKEventViewController/allowsCalendarPreview)

A Boolean that determines whether the user can preview the event in a calendar day.

[`allowsEditing`](/documentation/EventKitUI/EKEventViewController/allowsEditing)

A Boolean that determines whether the user may edit the event.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`UIResponderStandardEditActions`](/documentation/UIKit/UIResponderStandardEditActions)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`UITraitChangeObservable-67e94`](/documentation/UIKit/UITraitChangeObservable-67e94)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment)

[`Sendable`](/documentation/Swift/Sendable)

[`UIUserActivityRestoring`](/documentation/UIKit/UIUserActivityRestoring)

[`UIContentContainer`](/documentation/UIKit/UIContentContainer)

[`UIPasteConfigurationSupporting`](/documentation/UIKit/UIPasteConfigurationSupporting)

[`UIAppearanceContainer`](/documentation/UIKit/UIAppearanceContainer)

[`Hashable`](/documentation/Swift/Hashable)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`UIActivityItemsConfigurationProviding`](/documentation/UIKit/UIActivityItemsConfigurationProviding)

[`UIStateRestoring`](/documentation/UIKit/UIStateRestoring)

[`NSExtensionRequestHandling`](/documentation/Foundation/NSExtensionRequestHandling)

[`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment)

### Inherits From

[`UIViewController`](/documentation/UIKit/UIViewController)

---

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)