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

# presentationCornerRadius(_:)

Requests that the presentation have a specific corner radius.

## Declaration

```swift
nonisolated func presentationCornerRadius(_ cornerRadius: CGFloat?) -> some View

```

## Parameters

- `cornerRadius`: The corner radius, or nil to use the system default.

## Discussion

Discussion Use this modifier to change the corner radius of a presentation. struct ContentView: View {     @State private var showSettings = false

var body: some View {         Button("View Settings") {             showSettings = true         }         .sheet(isPresented: $showSettings) {             SettingsView()                 .presentationDetents([.medium, .large])                 .presentationCornerRadius(21)         }     } } note: Configuring a corner radius is not supported on watchOS, tvOS, or macOS.

## See Also

### Styling a sheet and its background

- [presentationBackground(_:)](swiftui/view/presentationbackground(_:).md)
- [presentationBackground(alignment:content:)](swiftui/view/presentationbackground(alignment:content:).md)
- [presentationBackgroundInteraction(_:)](swiftui/view/presentationbackgroundinteraction(_:).md)
- [PresentationBackgroundInteraction](swiftui/presentationbackgroundinteraction.md)
