Skip to content

Instantly share code, notes, and snippets.

@arcadefire
Last active September 12, 2021 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcadefire/d0c58412564895b1097cc26b7e3ab919 to your computer and use it in GitHub Desktop.
Save arcadefire/d0c58412564895b1097cc26b7e3ab919 to your computer and use it in GitHub Desktop.
Offset modifiers
Box(
Modifier
.swipeable(/* ... */)
.offset {
IntOffset(
x = 0,
y = swipeableState.offset.value.roundToInt()
)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment