title: Swift - could not dequeue a view of kind: UICollectionElementKindCell
body: <p>I got this error message when trying to load my project</p>
  
  <p>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier CustomCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'</p>
  
  <p>My code is:</p>
  
  <pre><code>extension ViewController: JTAppleCalendarViewDelegate, JTAppleCalendarViewDataSource {
      func configureCalendar(_ calendar: JTAppleCalendarView) -&gt; ConfigurationParameters {
          formatter.dateFormat = "yyyy MM dd"
          formatter.timeZone = Calendar.current.timeZone
          formatter.locale = Calendar.current.locale
  
          let startDate = formatter.date(from: "2017 01 01")!
          let endDate = formatter.date(from: "2017 12 31")!
  
          let parameters = ConfigurationParameters(startDate: startDate, endDate: endDate)
          return parameters
      }
  
      func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -&gt; JTAppleCell {
          let cell = calendar.dequeueReusableJTAppleCell(withReuseIdentifier: "CustomCell", for: indexPath) as! CustomCell
          cell.dateLabel.text = cellState.text
          return cell
      }
  }
  </code></pre>
  
  <p>Please help me debug this problem. Thank you.</p>
  
  <p>Edit: I have added the identifier for the cell, but still the error exists.</p>
  
  <p><a href="https://i.stack.imgur.com/qga2Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qga2Y.png" alt="Storyboard"></a></p>