inline fun <UiState : CircuitUiState> ui(crossinline body: @Composable (state: UiState, modifier: Modifier) -> Unit): Ui<UiState>(source)

Due to this bug in Studio, we can't write lambda impls of Ui directly. This works around it by offering a shim function of the same name. Once it's fixed, we can remove this and make Ui a fun interface instead.

Bug: https://issuetracker.google.com/issues/240292828

See also

for main docs.