CarouselSnap

How a carousel settles when the drag ends.

Mirrors SwiftUI's scroll target behavior.

public enum CarouselSnap

Values

NameSummary
ItemSettles on an item, leading edge aligned.
ItemCenteredSettles on an item, centered.
ItemPeekLike Item, but leaves a small slice of the previous item visible.
LeadingBoundaryFree scrolling, but the resting offset lands on an item's leading edge.
LeadingBoundaryPeekLike LeadingBoundary, but leaves a small slice of the previous item visible.
NoneFree scrolling; stops wherever the drag ends.
PageSettles a full page at a time.