-
Notifications
You must be signed in to change notification settings - Fork 0
Compose
Willian Mota Oliveira edited this page Aug 23, 2022
·
4 revisions
SpinnableView(
front: @Composable () -> Unit,
back: @Composable () -> Unit,
state: SpinnableState = SpinnableState.Manual.Both,
modifier: Modifier = Modifier
)
-
front: Your composable content when theSpinnableis front facing -
back: Your composable content when theSpinnableis back facing -
state: Defines in what state is yourSpinnable. The following types are available:
None: No movement allowed
Manual: It can beManual.Horizontal,Manual.VerticalorManual.Both. Each makes the component spinnable to the according axis.
Automatic: Has thehorizontalSpeedandverticalSpeed. It receives aFloatvalue.360Fmakes the component spin 360 degrees per second.
This one is also used in jvm target (Desktop)