SwipeableChannelItem

fun SwipeableChannelItem(channelCid: String, modifier: Modifier = Modifier, enabled: Boolean = true, backgroundColor: Color = Color.Unspecified, swipeActions: @Composable () -> Unit, content: @Composable () -> Unit)

A wrapper that adds swipe-to-reveal actions behind channel list item content.

Uses AnchoredDraggableState to provide smooth swipe interaction with snap-to anchors. Supports RTL layouts and coordinates with SwipeRevealCoordinator for single-open behavior.

Parameters

channelCid

The channel CID used for coordinator registration.

modifier

Modifier for styling.

enabled

Whether swiping is enabled.

backgroundColor

Opaque background for the foreground layer, hiding actions when closed.

swipeActions

Composable content for the action buttons revealed by swiping.

content

The channel item content displayed on top.