---
title: "eventEditViewController(_:didCompleteWith:)"
framework: eventkitui
role: symbol
role_heading: Instance Method
path: "eventkitui/ekeventeditviewdelegate/eventeditviewcontroller(_:didcompletewith:)"
---

# eventEditViewController(_:didCompleteWith:)

Invoked when the user finishes editing an event.

## Declaration

```swift
func eventEditViewController(_ controller: EKEventEditViewController, didCompleteWith action: EKEventEditViewAction)
```

## Parameters

- `controller`: The edit view controller presenting the event.
- `action`: The action the user took to end editing.

## Discussion

Discussion Implement this method to dismiss the modal event edit view controller.

## See Also

### Finishing an Edit

- [EKEventEditViewAction](eventkitui/ekeventeditviewaction.md)
