title: Unable to Create Generic Function to Register Multiple cell at once
body: <p>I am trying to create a method to register multiple cell at once to a table view using Reusable Protocol but I am facing some error Here is my Code </p>
  
  <pre><code>func register&lt;T&gt;(cells: [T.Type]) where T: UITableViewCell &amp; NibReusable {
          cells.forEach { cellType in
              self.register(cellType: cellType)
          }
  }
  
   tableView.register(cells: [SimpleHeaderView.self]) // Code Compile Successfully 
  
   tableView.register(cells: [SimpleHeaderView.self, AccountInfoCell.self]) // Getting Error Cannot invoke 'register' with an argument list of type '(cells: [BaseTableViewCell.Type])'
  </code></pre>
  
  <p>Getting Error <strong>Cannot invoke 'register' with an argument list of type '(cells: [BaseTableViewCell.Type])'</strong></p>