title: UICollectionView Layout with Section Header for SearchBar and another dynamic Section Header for the Title
body: <p>I want to create 2 header for the collection view.</p>
  
  <p>First header is the <code>UISearchController</code> and the section header is used for Category that I get from JSON</p>
  
  <p>Here's the JSON Example</p>
  
  <pre><code>"tag": "req_kingdom_classification",
  "success": "1",
  "error": "0",
  "data": [
      {
          "Category": "Animalia",
          "SubCategory": "Mamals",
          "imagePath": "Mamals.jpg",
          "keyword": "",
          "activity": "AA"
      },
      {
          "Category": "Animalia",
          "SubCategory": "Reptile",
          "imagePath": "Reptile.jpg",
          "keyword": "",
          "activity": "AA"
      },{
          "Category": "Plantae",
          "SubCategory": "Embryophyta",
          "imagePath": "Embryophyta.jpg",
          "keyword": "",
          "activity": "PP"
      },
      {
          "Category": "Bacteria",
          "SubCategory": "Streptomyces",
          "imagePath": "Streptomyces.jpg",
          "keyword": "",
          "activity": "BB"
      }, ...
  ]
  </code></pre>
  
  <p>The image is already inside the device because i've called an API to fetch the image.</p>
  
  <p>And here's what i want to create</p>
  
  <pre><code>------------------------------------------------------------- 
  |                          SearchBar                        |
  -------------------------------------------------------------
  |                          Category1                        |
  -------------------------------------------------------------
  |     Category1.imagePath1    |     Category1.imagePath2    |
  |    Category1.SubCategory1   |    Category1.SubCategory2   |
  |                                                           |
  |     Category1.imagePath3    |     Category1.imagePath4    |
  |    Category1.SubCategory3   |    Category1.SubCategory4   |
  -------------------------------------------------------------
  |                          Category2                        |
  -------------------------------------------------------------
  |     Category2.imagePath1    |     Category2.imagePath2    |
  |    Category2.SubCategory1   |    Category2.SubCategory2   |
  |                                                           |
  |     Category2.imagePath3    |     Category2.imagePath4    |
  |    Category2.SubCategory3   |    Category2.SubCategory4   |
  -------------------------------------------------------------
  ...
  </code></pre>
  
  <p>I use <code>UISearchBar</code> for searching each <code>SubCategory</code></p>
  
  <p>How to make custom <code>UICollectionView</code> like this using Swift?</p>