title: Collectionview inside Tableview - image not appearing in collection view
body: <p>I am trying to display a collection view of images in a tableview. However, the image does not appear. The collection view and tableview cell are loaded; it's just the image not appearing.</p>
  <p>Tableview Cell - this is tableview in the viewcontroller</p>
  <pre><code>  import UIKit
  
    struct Wolves {
    var name: String?
    var imageUrl: NSString?
   }
  
   class WTableViewCell: UITableViewCell, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
  
  
  var Count: [Wolves] = []
  
  
     func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
      return Count.count
  }
  
  func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
      print(indexPath.row)
  }
  
  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -&gt; UICollectionViewCell {
      let cell = collectionView.dequeueReusableCell(withReuseIdentifier: &quot;CollectionViewCell&quot;, for: indexPath) as! CollectionViewCell
      cell.loadImageWith(imgView: cell.wImageView, url: Count[indexPath.row].imageUrl as String?)
      cell.wImageView.applyCircularImageView()
      collectionView.reloadData()
      return cell
  }
  func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -&gt; CGSize {
         return CGSize(width: 50, height: 50)
     }
  
  func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -&gt; CGFloat {
      return 10
  }
  
  
  
  override func awakeFromNib() {
      super.awakeFromNib()
      // Initialization code
      CollectionView.delegate = self
      CollectionView.dataSource = self
      Count.append(Wolves(name: &quot;1&quot;, imageUrl: &quot;example.jpg&quot;))
      CollectionView.reloadData()
      self.CollectionView.layoutIfNeeded()
      
  }
  
  override func setSelected(_ selected: Bool, animated: Bool) {
      super.setSelected(selected, animated: animated)
  
      // Configure the view for the selected state
  }
  
  @IBOutlet weak var CollectionView: UICollectionView!
  
  
    }
  </code></pre>
  <p>Collectionview Cell</p>
  <pre><code>import UIKit
  
  class CollectionViewCell: UICollectionViewCell {
  @IBOutlet weak var wImageView: UIImageView!
  override class func awakeFromNib() {
  }
  </code></pre>
  <p>}</p>
  <p>View Controller</p>
  <pre><code>    func tableView(_ tableView: UITableView, cellForRowAt indexPath:     IndexPath) -&gt; UITableViewCell {
          let cell : TableViewCell = TableView.dequeueReusableCell(withIdentifier: &quot;wTableViewCell&quot;, for: indexPath) as! wTableViewCell
          return cell
  }
  </code></pre>