CarouselSnap
How a carousel settles when the drag ends.
Mirrors SwiftUI's scroll target behavior.
- Kind: Enum
- Namespace: SkeleKit
- Implements:
IComparable,IConvertible,IFormattable,ISpanFormattable
Values
| Name | Summary |
|---|---|
Item | Settles on an item, leading edge aligned. |
ItemCentered | Settles on an item, centered. |
ItemPeek | Like Item, but leaves a small slice of the previous item visible. |
LeadingBoundary | Free scrolling, but the resting offset lands on an item's leading edge. |
LeadingBoundaryPeek | Like LeadingBoundary, but leaves a small slice of the previous item visible. |
None | Free scrolling; stops wherever the drag ends. |
Page | Settles a full page at a time. |