<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Transaction/scrollContentOffsetAdjustmentBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11TransactionV37scrollContentOffsetAdjustmentBehaviorAA06ScrollefgH0Vvp"
  },
  "title" : "scrollContentOffsetAdjustmentBehavior"
}
-->

# scrollContentOffsetAdjustmentBehavior

The behavior a scroll view will have regarding content offset
adjustments for the current transaction.

```
var scrollContentOffsetAdjustmentBehavior: ScrollContentOffsetAdjustmentBehavior { get set }
```

## Discussion

A scroll view may automatically adjust its content offset
based on the current context. The absolute offset may be adjusted
to keep content in relatively the same place. For example,
when scrolled to the bottom, a scroll view may keep the bottom
edge scrolled to the bottom when the overall size of its content
changes.

Use this property to disable these kinds of adjustments when needed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)