Open JavierSegoviaCordoba opened 1 year ago
For some reason I expected this to work but it doesn't:
fun Paparazzi.snapshot(
name: String? = null,
offsetMillis: Long = 0L,
composable: @Composable () -> Unit,
) {
val hostView = ComposeView(context)
hostView.setContent(composable)
snapshot(hostView, name, offsetMillis)
}
@jrodbx
code snippet provided by @alashow does not work for me either
can you please confirm whether the offsetMillis
param works for compose?
I cannot get animations to work either in compose (showing snackbars). It works when using @Preview in interactive mode.
@jrodbx Any updates on this?
A function that includes
offsetMillis
is missing for Compose.It should be great if it could be added, and instead of using a
Long
it usesDuration
.snapshot
functions can be mixed with theView
one. Maybe the Gradle plugin can take an enum so:This would allow to Paparazzi Gradle plugin to only apply one library if the consumer is not using both systems, and that can enable splitting the Paparazzi
snapshot
functions into different modules, per system. or both.