<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessagesAppViewController/didStartSending(_:conversation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSMessagesAppViewController(im)didStartSendingMessage:conversation:"
  },
  "title" : "didStartSending(_:conversation:)"
}
-->

# didStartSending(_:conversation:)

Invoked when the user sends a message object.

```
func didStartSending(_ message: MSMessage, conversation: MSConversation)
```

## Parameters

`message`

The message being sent.

`conversation`

The conversation that the user is currently viewing in the Messages app.

## Discussion

Override this method to respond when the user sends an [`MSMessage`](/documentation/Messages/MSMessage) object. This method is called if you use the conversation’s [`insert(_:completionHandler:)`](/documentation/Messages/MSConversation/insert(_:completionHandler:)-3g248) method to add an [`MSMessage`](/documentation/Messages/MSMessage) object to the Messages app’s input field, and the user taps Send. It does not guarantee  that the message will be successfully sent or delivered.

The system does not call this method if the controller’s [`presentationStyle`](/documentation/Messages/MSMessagesAppViewController/presentationStyle) property is [`MSMessagesAppPresentationStyle.transcript`](/documentation/Messages/MSMessagesAppPresentationStyle/transcript), or if its [`presentationContext`](/documentation/Messages/MSMessagesAppViewController/presentationContext) property is [`MSMessagesAppPresentationContext.media`](/documentation/Messages/MSMessagesAppPresentationContext/media).

---

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)