Instance Property

clipsToBounds

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

Declaration

var clipsToBounds: Bool { get set }

Discussion

Setting this value to true causes subviews to be clipped to the bounds of the receiver. If set to false, subviews whose frames extend beyond the visible bounds of the receiver are not clipped. The default value is false.