<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/clipped(antialiased:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE7clipped11antialiasedQrSb_tF"
  },
  "title" : "clipped(antialiased:)"
}
-->

# clipped(antialiased:)

Clips this view to its bounding rectangular frame.

```
nonisolated func clipped(antialiased: Bool = false) -> some View
```

## Parameters

`antialiased`

A Boolean value that indicates whether the
rendering system applies smoothing to the edges of the clipping
rectangle.

## Return Value

A view that clips this view to its bounding frame.

## Discussion

Use the `clipped(antialiased:)` modifier to hide any content that
extends beyond the layout bounds of the shape.

By default, a view’s bounding frame is used only for layout, so any
content that extends beyond the edges of the frame is still visible.

```
Text("This long text string is clipped")
    .fixedSize()
    .frame(width: 175, height: 100)
    .clipped()
    .border(Color.gray)
```

![Screenshot showing text clipped to its](images/com.apple.SwiftUI/SwiftUI-View-clipped@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)