title: How to set focus on collectionView in swift 4?
body: <p>Hello I have a <code>UICollectionView</code>. In a particular cell I have many views like <code>UserProfileView</code>, <code>ProductView</code>, <code>CommentBoxView</code> etc. In <code>CommentBoxView</code> there is a text view where the user can type and then post the comment. After posting the comment I want to focus that particular cell, from which cell user have posted the comment. For this I have used :</p>
  
  <pre><code>func indexPathForPreferredFocusedView(in collectionView: UICollectionView) -&gt; IndexPath? {
    return IndexPath(row: 2, section: 0)
  }
  </code></pre>
  
  <p>I am testing with the hardcoded value but still it is not coming. Please any one help me regarding this matter.</p>