setEnum

fun setEnum(propertyPath: String, value: String)

Sets an enum property on this view model instance. Enums are represented as strings.

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

Parameters

propertyPath

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

value

The string value of the enum to set the property to.