<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMessageComposeViewControllerTextMessageAvailabilityKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "c:@MFMessageComposeViewControllerTextMessageAvailabilityKey"
  },
  "title" : "MFMessageComposeViewControllerTextMessageAvailabilityKey"
}
-->

# MFMessageComposeViewControllerTextMessageAvailabilityKey

The value of this key is a number object that contains a Boolean value.

```
let MFMessageComposeViewControllerTextMessageAvailabilityKey: String
```

## Discussion

This value matches the result of the [`canSendText()`](/documentation/MessageUI/MFMessageComposeViewController/canSendText()) class method.The `userInfo` dictionary for the [`MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification`](/documentation/MessageUI/MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification) notification includes this key. The value of this key is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object that contains a Boolean value. This value matches the result of the [`canSendText()`](/documentation/MessageUI/MFMessageComposeViewController/canSendText()) class method.

---

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)