---
title: MFMessageComposeViewControllerDelegate
framework: messageui
role: symbol
role_heading: Protocol
path: messageui/mfmessagecomposeviewcontrollerdelegate
---

# MFMessageComposeViewControllerDelegate

An interface for responding to user interactions with a message compose view controller.

## Declaration

```swift
protocol MFMessageComposeViewControllerDelegate : NSObjectProtocol
```

## Overview

Overview The MFMessageComposeViewControllerDelegate protocol defines a single method that custom objects can implement to respond to updates from a message composition view (an instance of the  MFMessageComposeViewController class). Use the method of this protocol to respond to the end of the user composing an SMS message. The method includes information about whether the user chose to send or cancel the message, or whether the attempt to send it failed.

## Topics

### Responding to the Message Completion

- [messageComposeViewController(_:didFinishWith:)](messageui/mfmessagecomposeviewcontrollerdelegate/messagecomposeviewcontroller(_:didfinishwith:).md)
- [MessageComposeResult](messageui/messagecomposeresult.md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Responding to the view controller dismissal

- [messageComposeDelegate](messageui/mfmessagecomposeviewcontroller/messagecomposedelegate.md)
