title: Slide to delete with similar design to iOS 10+ Notifications slide to delete in UITableViewCell
body: <p>How can I make a tableviewcell's slide to delete look like the slide to delete for iOS notifications (fade in and don't touch edge of the screen). I  will only have the delete button so I don't need multiple buttons. I would like it to delete upon a full swipe just like the notifications. </p>
  
  <p>Here's a photo of the wanted result with 2 buttons (I only want 1):</p>
  
  <p><a href="https://i.stack.imgur.com/hfCXJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hfCXJ.jpg" alt="iOS notification swipe to delete"></a></p>
  
  <p>The current code I have written only sets the editing style to delete. I have tried using <code>UIContextualAction</code> but I believe I can only set the style, background color, and/or image.</p>
  
  <pre><code>func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -&gt; Bool {
      return true
  }
  func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
      if editingStyle == .delete {
          print("delete")
      }
  }
  </code></pre>
  
  <p>This is what it looks like with my current code:<a href="https://i.stack.imgur.com/HAqws.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HAqws.jpg" alt="What I currently have"></a></p>