title: Unable to add footer to Collection View
body: <p>All I need is a footer of height 50 with background color black. Nothing more. Forget the implementation below for some time and let me know how you would implement the same.</p>
  
  <p>I am using the following:</p>
  
  <p><a href="https://i.stack.imgur.com/7Otum.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7Otum.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/QqyMr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QqyMr.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/YEIpd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YEIpd.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/MmdOA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MmdOA.png" alt="enter image description here"></a></p>
  
  <pre><code> func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -&gt; UICollectionReusableView {
          let view = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionElementKindSectionFooter, withReuseIdentifier: "FooterView", for: indexPath as IndexPath)
          // configure footer view
          return view
      }
  
   func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, referenceSizeForFooterInSection section: Int) -&gt; CGSize
      {
          return CGSize(width: 375, height: 100)
      }
  </code></pre>
  
  <p>However, no footer is attached to the collection view. I am not able to understand why this doesn't work and how I should correct this. Please help me correct this.</p>