draws

fun View.draws(): Flow<Unit>

Create a Flow of draw events on the View instance.

Note: Created flow keeps a strong reference to the View instance until the coroutine that launched the flow collector is cancelled.

Example of usage:

view.draws()
.onEach {
// handle draw
}
.launchIn(uiScope)