<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/clipsToBounds",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(py)clipsToBounds"
  },
  "title" : "clipsToBounds"
}
-->

# clipsToBounds

A Boolean value that determines whether subviews are confined to the bounds of the view.

```
var clipsToBounds: Bool { get set }
```

## Discussion

Setting this value to <doc://com.apple.documentation/documentation/Swift/true> causes subviews to be clipped to the bounds of the view. If set to <doc://com.apple.documentation/documentation/Swift/false>, subviews whose frames extend beyond the visible bounds of the view aren’t clipped.

The default value is <doc://com.apple.documentation/documentation/Swift/false>. Some subclasses of [`UIView`](/documentation/UIKit/UIView), like [`UIScrollView`](/documentation/UIKit/UIScrollView), override the default value to <doc://com.apple.documentation/documentation/Swift/true>.

---

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)