Contents

isPending

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

Declaration

var isPending: Bool { get }

Discussion

Use this property to determine whether an MSMessage instance represents an unsent message—for example, to determine whether the conversation’s selectedMessage property refers to a message in the transcript (false) or to a message in the Messages app’s input field (true).

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

In other words, the property is true only for the selected method of the active conversation when there’s an MSMessagesAppViewController instance in the Messages app’s input field.

See Also

Message Properties