---
title: "enabled(upThrough:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/presentationbackgroundinteraction/enabled(upthrough:)"
---

# enabled(upThrough:)

People can interact with the view behind a presentation up through a specified detent.

## Declaration

```swift
static func enabled(upThrough detent: PresentationDetent) -> PresentationBackgroundInteraction
```

## Parameters

- `detent`: The largest detent at which people can interact with the view behind the presentation.

## Discussion

Discussion At detents larger than the one you specify, SwiftUI disables interaction.

## See Also

### Getting interaction types

- [automatic](swiftui/presentationbackgroundinteraction/automatic.md)
- [disabled](swiftui/presentationbackgroundinteraction/disabled.md)
- [enabled](swiftui/presentationbackgroundinteraction/enabled.md)
