---
title: clipsToBounds
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiview/clipstobounds
---

# clipsToBounds

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

## Declaration

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

## Mentioned in

Using responders and the responder chain to handle events

## Discussion

Discussion Setting this value to true causes subviews to be clipped to the bounds of the view. If set to false, subviews whose frames extend beyond the visible bounds of the view aren’t clipped. The default value is false. Some subclasses of UIView, like UIScrollView, override the default value to true.

## See Also

### Configuring a view’s visual appearance

- [backgroundColor](uikit/uiview/backgroundcolor.md)
- [isHidden](uikit/uiview/ishidden.md)
- [alpha](uikit/uiview/alpha.md)
- [isOpaque](uikit/uiview/isopaque.md)
- [tintColor](uikit/uiview/tintcolor.md)
- [tintAdjustmentMode](uikit/uiview/tintadjustmentmode-swift.property.md)
- [clearsContextBeforeDrawing](uikit/uiview/clearscontextbeforedrawing.md)
- [mask](uikit/uiview/mask.md)
- [layerClass](uikit/uiview/layerclass.md)
- [layer](uikit/uiview/layer.md)
