Skip to main content

composer-vc.content-properties

text

The text of the input text view.

public var text: String

state

The state of the composer.

public let state: ComposerState

editingMessage

The editing message if the composer is currently editing a message.

public let editingMessage: ChatMessage?

quotingMessage

The quoting message if the composer is currently quoting a message.

public let quotingMessage: ChatMessage?

threadMessage

The thread parent message if the composer is currently replying in a thread.

public var threadMessage: ChatMessage?

attachments

The attachments of the message.

public var attachments: [AnyAttachmentPayload]

mentionedUsers

The mentioned users in the message.

public var mentionedUsers: Set<ChatUser>

command

The command of the message.

public var command: Command?

isEmpty

A boolean that checks if the message contains any content.

public var isEmpty: Bool 

isInsideThread

A boolean that checks if the composer is replying in a thread

public var isInsideThread: Bool 

hasCommand

A boolean that checks if the composer recognised already a command.

public var hasCommand: Bool 

Methods

clear()

Resets the current content state and clears the content.

public mutating func clear() 

editMessage(_:)

Sets the content state to editing a message.

public mutating func editMessage(_ message: ChatMessage) 

Parameters

  • message: The message that the composer will edit.

quoteMessage(_:)

Sets the content state to quoting a message.

public mutating func quoteMessage(_ message: ChatMessage) 

Parameters

Did you find this page helpful?