<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessage/isPending",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSMessage(py)pending"
  },
  "title" : "isPending"
}
-->

# isPending

A Boolean value that indicates whether the message is pending or whether it has been sent or received.

```
var isPending: Bool { get }
```

## Discussion

Use this property to determine whether an [`MSMessage`](/documentation/Messages/MSMessage) instance represents an unsent message—for example, to determine whether the conversation’s [`selectedMessage`](/documentation/Messages/MSConversation/selectedMessage) property refers to a message in the transcript (<doc://com.apple.documentation/documentation/Swift/false>) or to a message in the Messages app’s input field (<doc://com.apple.documentation/documentation/Swift/true>).

This property’s value is set based on the following rules:

- This property is set to <doc://com.apple.documentation/documentation/Swift/true> when your app calls the [`insert(_:completionHandler:)`](/documentation/Messages/MSConversation/insert(_:completionHandler:)-3g248) method to place the message in the Messages app’s input field.
- It’s set to <doc://com.apple.documentation/documentation/Swift/false> when the system calls the [`didStartSending(_:conversation:)`](/documentation/Messages/MSMessagesAppViewController/didStartSending(_:conversation:)) method (either because the user sent the message from the input field or because you called the [`send(_:completionHandler:)`](/documentation/Messages/MSConversation/send(_:completionHandler:)-9krz) method to send it directly).
- This property is set to <doc://com.apple.documentation/documentation/Swift/false> on messages received from other participants.

In other words, the property is <doc://com.apple.documentation/documentation/Swift/true> only for the selected method of the active conversation when there’s an [`MSMessagesAppViewController`](/documentation/Messages/MSMessagesAppViewController) instance in the Messages app’s input field.

---

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)