rememberArtboard

fun rememberArtboard(file: RiveFile, artboardName: String? = null): Artboard

Creates an Artboard from the given RiveFile.

The lifetime of the artboard is managed by this composable. It will delete the artboard when it falls out of scope.

Return

The created Artboard.

Parameters

file

The RiveFile to instantiate the artboard from.

artboardName

The name of the artboard to load. If null, the default artboard will be loaded.