title: How to create a slow and continuous scroll with CollectionView Swift
body: <p>So I have some info that I would like to display in a horizontal CollectionView that scrolls automatically without user interaction. Like those bars under news channels that display info.</p>
  <p>I have the CollectionView set up with the cells renewing once the datasource runs out, so I can scroll infinitely with the data being recycled.</p>
  <p>I found some functions that use timers but they snap to a new index path and its not a continuous slow scroll. I also found some cocoa pods but I can imagine there is a simpler way to do this?</p>
  <pre><code>func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
      return Int.max
  }
  
  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
      let cell = CollectionView.dequeueReusableCell(withReuseIdentifier: &quot;OverViewCell&quot;, for: indexPath) as? OverViewCollectionCellCollectionViewCell
      let itemToShow = testlist[indexPath.item % testlist.count]
      
      
      cell!.symbolLabelCollection.text = itemToShow
      
      
      return cell!
  }
  </code></pre>
  <p>Any idea?</p>