Skip to content
jolt.
← Recipes

TOUCH & GESTURES / iOS / NATIVESCRIPT VUE

Let it find its place.

Drag, release and settle into the next snap point.

Native recording · iOSiOS 26 simulator · native playback with actual XCTest input, original speed. Not a physical-device performance measurement.

The motion behind it.

Jolt 0.1.0-rc.11

The core API example, taken directly from the guide. Use the full demo for the surrounding interface and controls.

TypeScript · NativeScript
import { drag } from '@rafaelaugusto/jolt'

const panel = drag(sheet, {
  axis: 'y',
  bounds: { top: 0, bottom: 600 },
  snap: [0, 300, 600],
  rubberband: true,
})

panel.dispose()
View full demo ↗

Read the full guide ↗