AI Integration Quick Reference
AI Integration Quick Reference
RichTextFormathas no color — the formats are bold, italic, underline, strikethrough, inline code, code block, link, bulleted list, numbered list and quote.- Message bubbles draw mentions and markdown from the message itself and do not run your
text formatters, so a
{color:…}token you put in the text would show as typed.
Your own toolbar button
The button receives aComposerInputController while the composer is on screen. Read the text
and the selection, insert or replace text, or toggle one of the built-in formats:
- SwiftUI
- UIKit
FormattingComposer.swift
Next Steps
Message Composer
Rich-text formatting and the toolbar
Text Formatter Base Class
What formatters can and cannot change
Message Template
Replace how a message kind is drawn
All Guides
Browse the other guides