---
title: EKEventViewController
framework: eventkitui
role: symbol
role_heading: Class
path: eventkitui/ekeventviewcontroller
---

# EKEventViewController

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

## Declaration

```swift
class EKEventViewController
```

## Overview

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 protocol.

## Topics

### Dismissing the Event Interface

- [delegate](eventkitui/ekeventviewcontroller/delegate.md)
- [EKEventViewDelegate](eventkitui/ekeventviewdelegate.md)

### Getting and Setting the Event

- [event](eventkitui/ekeventviewcontroller/event.md)

### Displaying and Editing Event Previews

- [allowsCalendarPreview](eventkitui/ekeventviewcontroller/allowscalendarpreview.md)
- [allowsEditing](eventkitui/ekeventviewcontroller/allowsediting.md)

## Relationships

### Inherits From

- [UIViewController](uikit/uiviewcontroller.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)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UIContentContainer](uikit/uicontentcontainer.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIStateRestoring](uikit/uistaterestoring.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)
