Command ComposerNew
A message composer with slash commands and at mentions: a filtered suggestion panel, chips for picks, and structured tokens on send.
Pro pattern · recorded from Pro
The SwiftUI source comes with SwiftPieces Pro.
Every Pro pattern installs with one command once your license is signed in, and re-skins with Pro's design system.
Open it in the Pro library ↗Needs a SwiftPieces Pro license: npx swiftpieces login first.
- Type
- CommandComposer
- Inside
- / commands, @ people and files, Search states, Token chips
- Install, with a Pro license
- npx swiftpieces add CommandComposer
- Depends on
- Pro's Design System, which installs with it
A composer pinned above the keyboard that opens a suggestion panel when a word starts with / or @. Commands filter as you type, mentions search through your closure with Searching, no matches and Retry, and a pick becomes a chip above the text that onSend receives as a structured token.
Its SwiftUI source comes with SwiftPieces Pro: Command Composer in the Pro library.