---
title: "presentationDragIndicator(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/presentationdragindicator(_:)"
---

# presentationDragIndicator(_:)

Sets the visibility of the drag indicator on top of a sheet.

## Declaration

```swift
nonisolated func presentationDragIndicator(_ visibility: Visibility) -> some View

```

## Parameters

- `visibility`: The preferred visibility of the drag indicator.

## Discussion

Discussion You can show a drag indicator when it isn’t apparent that a sheet can resize or when the sheet can’t dismiss interactively. struct ContentView: View {     @State private var showSettings = false

var body: some View {         Button("View Settings") {             showSettings = true         }         .sheet(isPresented: $showSettings) {             SettingsView()                 .presentationDetents([.medium, .large])                 .presentationDragIndicator(.visible)         }     } }

## See Also

### Configuring a sheet’s height

- [presentationDetents(_:)](swiftui/view/presentationdetents(_:).md)
- [presentationDetents(_:selection:)](swiftui/view/presentationdetents(_:selection:).md)
- [presentationContentInteraction(_:)](swiftui/view/presentationcontentinteraction(_:).md)
- [PresentationDetent](swiftui/presentationdetent.md)
- [CustomPresentationDetent](swiftui/custompresentationdetent.md)
- [PresentationContentInteraction](swiftui/presentationcontentinteraction.md)
