swapListItems

fun swapListItems(propertyPath: String, indexA: Int, indexB: Int)

Swaps two items in a list property by their indices.

ℹ️ Changes to bound Rive elements will not be reflected until the next state machine advance.

Parameters

propertyPath

The path to the list property from this view model instance. Slash delimited to refer to nested properties.

indexA

The index of the first item to swap.

indexB

The index of the second item to swap.