---
title: "threshold(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/scrolltransitionconfiguration/threshold(_:)"
---

# threshold(_:)

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

## Declaration

```swift
func threshold(_ threshold: ScrollTransitionConfiguration.Threshold) -> ScrollTransitionConfiguration
```

## Parameters

- `threshold`: The threshold specifying how much of the view must intersect with the container before it is treated as visible.

## Return Value

Return Value A copy of this configuration with the threshold set to the given value.

## See Also

### Accessing the configuration

- [animation(_:)](swiftui/scrolltransitionconfiguration/animation(_:).md)
- [ScrollTransitionConfiguration.Threshold](swiftui/scrolltransitionconfiguration/threshold.md)
