rememberVicoScrollState
fun rememberVicoScrollState(scrollEnabled: Boolean = true, initialScroll: Scroll.Absolute = Scroll.Absolute.Start, autoScroll: Scroll = initialScroll, autoScrollCondition: AutoScrollCondition = AutoScrollCondition.Never, autoScrollAnimationSpec: AnimationSpec<Float> = spring(), xSnapStep: Double? = null, snapAnimationSpec: AnimationSpec<Float> = spring()): VicoScrollState
Creates and remembers a VicoScrollState instance.
Parameters
xSnapStep
if not null, the scroll will snap to multiples of this x-axis step after the user stops scrolling.
snapAnimationSpec
the AnimationSpec for snap scrolling.