title: Swift CollectionView set where to scroll
body: <p>So I have a collection view horizontal and I want when the user scroll to set the scroll where I want.</p>
  
  <pre><code>@IBOutlet var joke_cards: UICollectionView!
  
  extension ViewController: UIScrollViewDelegate{
  
      func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer&lt;CGPoint&gt;) {
  
          joke_cards.contentOffset.x = scrollView.contentOffset.x + 1000
          joke_cards.reloadData()
  
      }
  
  }
  </code></pre>
  
  <p>But this doesn't work, it scrolls normally, I want to specify how much to scroll, any suggestions?</p>
  
  <p>So I think I need to be a bit more clear, what I want is to flip through some cards horizontally thats why I need when the user stars to swipe to show the next cell in the middle</p>