---
title: scrollPositionUpdatePreservesVelocity
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/transaction/scrollpositionupdatepreservesvelocity
---

# scrollPositionUpdatePreservesVelocity

Whether a programmatic update to the scroll position of a scroll view preserves the current velocity of any active scroll of the scroll view.

## Declaration

```swift
var scrollPositionUpdatePreservesVelocity: Bool { get set }
```

## Discussion

Discussion By default, when a scroll view sees a programmatic update to its scroll position, it will stop any active scrolls for unanimated scrolls. If a programmatic update is animated, this property is ignored.
