title: How to dismiss programmatically the clipsToBounds property when a GestureRecognizer begin?
body: <p>I have a <code>UIScrollView</code> which is able to contains many view. To allow a good scrolling (without the content going outside the view while scrolling), on my <code>Main.sotryboard</code> , I've clicked on my <code>UIScrollView</code> and then in the attribute inspector I have allowed the <code>Clip Subviews</code> property:</p>
  
  <p><a href="https://i.stack.imgur.com/9ltTa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9ltTa.png" alt="The 3rd property is: Clip Subviews"></a></p>
  
  <p><strong>My problem:</strong> all the views which are in my <code>UIScrollViews</code> are draggable (because they all have a <code>UIPanGestureRecognizer</code>.
  So, when I try to drag them OUTSIDE my <code>UIScrollView</code>, they just disappear.
  <em>In fact they're just going behind every other view</em></p>
  
  <p>To give you an exemple, I have others components which allow the drop of a view form the precedent <code>UIScrollView</code>. So when I begin the drag'n'drop from it, it disappear, and then reappear in the second component on which I have dropped the view.</p>
  
  <p><strong>What I have tried:</strong> I have a special <code>UIPanGestureRecognizer</code> for te drag'n'drop of a view coming from this <code>UIScrollView</code>. So, I actually have this (which, obviously, doesn't work, otherwise I would not be here):</p>
  
  <pre><code>//Here recognizer is the `UIPanGestureRecognizer`
  //selectpostit is the name of the view I want to drag
  if(recognizer.state == UIGestureRecognizerStateBegan){
      selectpostit.clipsToBounds = NO;
  }
  </code></pre>
  
  <p>Any Ideas on how I can improve that?
  Thanks in advance.</p>