title: Use delegate method written in Objective-C in Swift code
body: <p>I'd like to use a delegate method written in Objective-C in Swift. The method is included in the <a href="https://github.com/MortimerGoro/MGSwipeTableCell" rel="nofollow noreferrer">MGSwipeTableCell</a> framework (MGSwipeTableCell.h).</p>
  <p>Objective-C:</p>
  <pre><code>-(BOOL) swipeTableCell:(MGSwipeTableCell*) cell tappedButtonAtIndex:(NSInteger) index direction:(MGSwipeDirection)direction fromExpansion:(BOOL) fromExpansion;
  </code></pre>
  <p>I try to convert it into Swift to and use the method:</p>
  <pre><code>func swipeTableCell(cell:MGSwipeTableCell, index:Int,  direction:MGSwipeDirection, fromExpansion:Bool) -&gt; Bool {
      
      return true
  }
  </code></pre>
  <p>But I don't know why but the function isn't getting called. Did I something wrong? I just want to get the indexPath of the swiped cell with this function.</p>