clipsToBounds
A Boolean value that determines whether subviews are confined to the bounds of the view.
Declaration
var clipsToBounds: Bool { get set }Mentioned in
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.