<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ScrollTransitionConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI29ScrollTransitionConfigurationV"
  },
  "title" : "ScrollTransitionConfiguration"
}
-->

# ScrollTransitionConfiguration

The configuration of a scroll transition that controls how a transition
is applied as a view is scrolled through the visible region of a containing
scroll view or other container.

```
struct ScrollTransitionConfiguration
```

## Topics

### Getting the configuration

[`identity`](/documentation/SwiftUI/ScrollTransitionConfiguration/identity)

Creates a new configuration that does not change the appearance of the view.

[`animated`](/documentation/SwiftUI/ScrollTransitionConfiguration/animated)

Creates a new configuration that discretely animates the transition
when the view becomes visible.

[`animated(_:)`](/documentation/SwiftUI/ScrollTransitionConfiguration/animated(_:))

Creates a new configuration that discretely animates the transition
when the view becomes visible.

[`interactive`](/documentation/SwiftUI/ScrollTransitionConfiguration/interactive)

Creates a new configuration that interactively interpolates the
transition’s effect as the view is scrolled into the visible region
of the container.

[`interactive(timingCurve:)`](/documentation/SwiftUI/ScrollTransitionConfiguration/interactive(timingCurve:))

Creates a new configuration that interactively interpolates the
transition’s effect as the view is scrolled into the visible region
of the container.

### Accessing the configuration

[`animation(_:)`](/documentation/SwiftUI/ScrollTransitionConfiguration/animation(_:))

Sets the animation with which the transition will be applied.

[`threshold(_:)`](/documentation/SwiftUI/ScrollTransitionConfiguration/threshold(_:))

Sets the threshold at which the view will be considered fully visible.

[`Threshold`](/documentation/SwiftUI/ScrollTransitionConfiguration/Threshold)

Describes a specific point in the progression of a target view within a container
from hidden (fully outside the container) to visible.



---

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)