title: Tableview Xib Shadow Swift
body: <p><strong>Here is what I am trying to do:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/ebvwq.png" alt="Original Screen Shot"></p>
  
  <p><strong>The screenshot is taken from Iphone:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/HcdPf.jpg" alt="Taken Screenshot"></p>
  
  <p><strong>This is my code:</strong></p>
  
  <pre><code>cell.shadowLayerView.layer.masksToBounds = false
  cell.shadowLayerView.layer.shadowOffset = CGSize(width: 0, height: 0)
  cell.shadowLayerView.layer.shadowColor = UIColor.black.cgColor
  cell.shadowLayerView.layer.shadowOpacity = 0.23
  cell.shadowLayerView.layer.shadowRadius = 4
  cell.shadowLayerView.layer.shadowPath = UIBezierPath(roundedRect: cell.shadowLayerView.bounds, cornerRadius: 2).cgPath
  cell.shadowLayerView.layer.shouldRasterize = true
  cell.shadowLayerView.layer.rasterizationScale = UIScreen.main.scale
  cell.discriptionLbl.frame.size.width = UIScreen.main.bounds.size.width
  </code></pre>
  
  <p>This is my tableview xib. In original image show light gray color shadow all side(Top,Bottom,left,Right) but in taken image show all side shadow but why show extra shadow in right side and bottom side.</p>
  
  <p><strong>See Below Image:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/GRy4s.png" alt="Latest Taken Image"></p>
  
  <p><strong>Question:</strong> How to show same shadow from all side of the view like original image(shadow in light gray color)?</p>
  
  <p>Can someone please explain to me how to solve this , i've tried to solve this issue but no results yet.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>Thanks in advance.</p>