<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMessageComposeViewController/canSendText()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Message UI"
    ],
    "preciseIdentifier" : "c:objc(cs)MFMessageComposeViewController(cm)canSendText"
  },
  "title" : "canSendText()"
}
-->

# canSendText()

Returns a Boolean value that indicates whether the current device is capable of sending text messages.

```
class func canSendText() -> Bool
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the device can send text messages or <doc://com.apple.documentation/documentation/Swift/false> if it cannot.

## Discussion

Always call this method before attempting to present the message compose view controller. A device may be unable to send messages if it does not support messaging or if it is not currently configured to send messages. This method applies only to the ability to send text messages via iMessage, SMS, and MMS.

To be notified of changes in the availability of sending text messages, register as an observer of the [`MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification`](/documentation/MessageUI/MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification) notification.

---

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)