title: How do I set the background image size of a table cell in swift?
body: <p>So far I have: </p>
  
  <pre><code>var imageView = UIImageView(frame: CGRectMake(10, 10, cell.frame.width - 10, cell.frame.height - 10))
  let image = UIImage(named: ImageNames[indexPath.row])
  imageView.image = image
  cell.backgroundView = imageView
  </code></pre>
  
  <p>This sets the background image, but my goal is to have 10 pixels worth of padding on either side. This is just filling the background of the cell with this image.</p>