title: Prevent a UIView from Overflow outside SuperView in Swift
body: <p>Let's say there is UIView(0,0,100,100) which has two SubViews, one is (-5,-5,10,10) and second is (0,95,10,10). I want to let first SubView overflow from superView but not secondOne. Is there any property in UIView which I can set to prevent a UIView from overflowing it's SuperView? Or what is the best way to achieve this?</p>
  
  <p><strong>NOTE:</strong> Here co-ordinates are in form of (x,y,Width,Height)</p>
  
  <p><strong>UPDATE:</strong> As some people have marked this question unclear, let me add some bullet points for same:</p>
  
  <ol>
  <li>I am familiar with <code>clipToBounds</code> property of UIView, But that will let all of it's subViews to be clipped, But my question was vise-versa.</li>
  <li>I Just wanted to know if there is any property in UIView which will prevent a UIView of overflow from it's superView.</li>
  <li>To state same problem I just gave an example in which setting clipToBounds to superView will not serve our purpose because one subView needs to be overflow from it's parent View.</li>
  </ol>
  
  <p>Please let me know in comments if it's still unclear.</p>