---
title: "clipShape(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/matchedtransitionsourceconfiguration/clipshape(_:)"
---

# clipShape(_:)

Applies the specified shape as to the matched transition source, clipping its content.

## Declaration

```swift
func clipShape(_ shape: RoundedRectangle) -> some MatchedTransitionSourceConfiguration

```

## Parameters

- `shape`: The shape to use as a mask.
