UITableViewRowAction with image, swift
<p>In my app I would like to use <code>UITableViewRowAction</code> with image instead of title text. I set background image using:</p>

<pre><code>let edit = UITableViewRowAction(style: .Normal, title: "Edit") { action, index in
  self.indexPath = indexPath
  self.performSegueWithIdentifier("toEdit", sender: self)
}
edit.backgroundColor = UIColor(patternImage: UIImage(named: "edit")!)
</code></pre>

<p>However image appears many times.</p>

<p><a href="https://i.stack.imgur.com/lcI9p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lcI9p.png" alt="enter image description here"></a></p>

<p>How can I fix this to have only one image in row?</p>