title: Unable to reload only the selected cell
body: <p>I want to reload only the selected cell in particular when tapping a picture in a cell.But i got the error cannot convert value of type 'IndexPath.Type' to expected argument type 'IndexPath'in this line: loadPostsValue(indexPath: IndexPath)</p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
          let indexPath = self.collectionView.indexPathsForSelectedItems
          print(indexPath)
          loadPostsValue(indexPath: IndexPath)
      }
  
      func loadPostsValue(indexPath: IndexPath) {
          posts.removeAll()
          let ref = Database.database().reference()
          ref.child("posts").observe(.childAdded) { (snapshot: DataSnapshot) in
              if  let dict = snapshot.value as? [String: Any] {
                  guard let titleText = dict["title"] as? String else{return}
                  let locationDetails = dict["location"] as! String
                  let captionText = dict["caption"] as! String
                  let photoUrlString = dict["photoUrl"] as! String
                  let priceText = dict["price"] as! String
                  let categoryText = dict["category"] as! String
                  let usernameLabel = dict["username"] as! String
                  let profileImageURL = dict["pic"] as! String
                  let heartInt = dict["heart"] as! Int
                  let timestampString = dict["timestamp"] as! String
                  let post = Post(titleText: titleText, captionText: captionText, locationDetails: locationDetails, photoUrlString: photoUrlString, priceText: priceText,categoryText: categoryText, usernameLabel: usernameLabel, profileImageURL: profileImageURL, heartInt: heartInt, timestampString: timestampString)
                  self.posts.append(post)
                  print(self.posts)
                  self.collectionView.reloadItems(at: [indexPath])
  
  
              }
          }
      }
  </code></pre>