screens/DSConversationList
DSConversationList
screensMessages inbox row list with avatar, sender name, message preview, timestamp, and unread count badge.
iOS 17+macOS 14+
Purpose
Messaging inbox, notification centre list, and email-style thread lists.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| conversationsreq | [DSConversation] | — | List of conversation models. |
| onSelectreq | ((DSConversation) -> Void) | — | Row tap handler. |
| onDelete | ((DSConversation) -> Void)? | nil | Swipe-to-delete handler. |
| searchQuery | Binding<String>? | nil | Filters the list if provided. |
Examples
Messages inbox
Standard chat inbox with search.
swift
DSConversationList(
conversations: viewModel.conversations,
onSelect: { convo in navigate(.chat(convo)) },
onDelete: { convo in viewModel.delete(convo) },
searchQuery: $searchQuery
)