New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift protocol prototypes #79
Comments
I'll add a demo using Swift soon, so I close this 'issue'. |
May I ask you where is that Swift demo? I would really appreciate it! |
Really, with the delegate prototypes I posted, you can get this framework supported in Swift easily. |
I can't seem to implement the delegate methods in swift. They never seem to get called. Can you please post the demo / example? |
here's a working example: (Swift 2.0, Xcode 7 beta 5) override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
.
}
func swipeTableCell(cell: MGSwipeTableCell!, tappedButtonAtIndex index: Int, direction: MGSwipeDirection, fromExpansion: Bool) -> Bool { |
@mhauss If your delegate methods are not being called you most likely are not setting the delegate for the cell:
|
Where do I put these swift delegate method ? |
If anyone is interested:
The text was updated successfully, but these errors were encountered: