---
title: "offset"
description: "The current offset, or null if it has not been initialized yet."
type: "property"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Android

```kotlin
public var offset: Float? by mutableStateOf(null)
```

The current offset, or null if it has not been initialized yet.

The offset will be initialized during the first measurement phase of the node that the
`swipeableV2` modifier is attached to. These are the phases: Composition { -> Effects } ->
Layout { Measurement -> Placement } -> Drawing During the first composition, the offset will
be null. In subsequent compositions, the offset will be derived from the anchors of the
previous pass. Always prefer accessing the offset from a LaunchedEffect as it will be
scheduled to be executed the next frame, after layout.

To guarantee stricter semantics, consider using [requireOffset](/jetpack-compose/androidx.wear.compose/compose-foundation/functions/requireOffset/api).
