title: Cannot convert value of type '(_) -> Void?' to expected argument type '(() -> Void)?'
body: <p>Cannot convert value of type '(_) -> Void?' to expected argument type '(() -> Void)?'</p>
  
  <p>[![enter image description here][1]][1]</p>
  
  <p>[1]: <a href="https://i.stack.imgur.com/M1MYV.png" rel="nofollow noreferrer">https://i.stack.imgur.com/M1MYV.png</a>`func deselectSelectedCells() {
          if let start = startDateIndexPath {
              var section = start.section
              var item = start.item + 1</p>
  
  <pre><code>        if let cell = collectionView?.cellForItem(at: start) as? AirbnbDatePickerCell {
              cell.type.remove([.InBetweenDate, .SelectedStartDate, .SelectedEndDate, .Selected])
              cell.configureCell()
              collectionView?.deselectItem(at: start, animated: false)
          }
  
          if let end = endDateIndexPath {
              var indexPathArr = [IndexPath]()
              while section &lt; months.count, section &lt;= end.section {
                  let curIndexPath = IndexPath(item: item, section: section)
                  if let cell = collectionView?.cellForItem(at: curIndexPath) as? AirbnbDatePickerCell {
                      cell.type.remove([.InBetweenDate, .SelectedStartDate, .SelectedEndDate, .Selected])
                      cell.configureCell()
                      collectionView?.deselectItem(at: curIndexPath, animated: false)
                  }
  
                  if section == end.section &amp;&amp; item &gt;= end.item {
                      // stop iterating beyond end date
                      break
                  } else if item &gt;= (collectionView!.numberOfItems(inSection: section) - 1) {
                      // more than num of days in the month
                      section += 1
                      item = 0
                  } else {
                      item += 1
                  }
              }
  
              collectionView?.performBatchUpdates({
                  (s) in
                  self.collectionView?.reloadItems(at: indexPathArr)
              }, completion: nil)
          }
      }
  }`
  </code></pre>