<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MessageUI",
  "identifier" : "/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Message UI",
      "MessageUI"
    ],
    "preciseIdentifier" : "s:So30MFMessageComposeViewControllerC9MessageUIE04Texte21AvailabilityDidChangeE0V"
  },
  "title" : "MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage"
}
-->

# MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage

Message type for text message availability change notifications.

```
struct TextMessageAvailabilityDidChangeMessage
```

## Overview

This notification is posted when the value of `+canSendText` changes,
indicating whether the device can send text messages.

> Note: This notification may be delivered on any thread. Observers should
> dispatch to the main actor if needed for UI updates.

## Topics

### Initializers

[`init(canSendText: Bool)`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/init(canSendText:))

Initialize with text message availability status

### Instance Properties

[`var canSendText: Bool`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/canSendText)

Whether text messages can be sent on this device

### Type Aliases

[`typealias Subject`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/Subject)

The notification subject type

### Type Properties

[`static var name: Notification.Name`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/name)

The existing Objective-C notification name

### Type Methods

[`static func makeMessage(Notification) -> MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage?`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/makeMessage(_:))

Transform a legacy Notification into a type-safe Message

[`static func makeNotification(MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage) -> Notification`](/documentation/MessageUI/MFMessageComposeViewController/TextMessageAvailabilityDidChangeMessage/makeNotification(_:))

Transform a type-safe Message into a legacy Notification

## Relationships

### Conforms To

[`AsyncMessage`](/documentation/Foundation/NotificationCenter/AsyncMessage)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)