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

ASCellNode with SWTableViewCell #419

Closed
asolakhyan opened this Issue Apr 4, 2015 · 3 comments

Comments

Projects
None yet
4 participants
@asolakhyan

asolakhyan commented Apr 4, 2015

Hi,

I was wondering if ASCellNode support iOS 7/8 style pan gestures (i.e. swipeable content view), sort of what SWTableViewCell does to UITableViewCell.

Thank you.

@macistador

This comment has been minimized.

macistador commented Feb 8, 2016

Hi @asolakhyan ! Did you went further on your implemention of the swipe into ASCellNode ? How did it go ?

@reyneiro

This comment has been minimized.

reyneiro commented Apr 2, 2016

I'm working on a case similar to this. Targeting iOS 8 or above you can use this:

func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [UITableViewRowAction]? {

    let editAction = UITableViewRowAction(style: UITableViewRowActionStyle.Normal, title: "Mute 2h") { (rowAction, indexPath) in

    }
    editAction.backgroundColor = UIColor.railroadSecondaryColor()


    let deleteAction = UITableViewRowAction(style: .Default, title: "Leave") { (rowAction:UITableViewRowAction, indexPath:NSIndexPath) -> Void in
        //TODO: Delete the row at indexPath here
    }
    deleteAction.backgroundColor = UIColor.railroadActiveColor()

    return [deleteAction, editAction]
}
@appleguy

This comment has been minimized.

Contributor

appleguy commented May 11, 2016

@asolakhyan: Thanks for contributing to the AsyncDisplayKit community by asking your question here! I apologize that it has taken me so long to get to this question. Unfortunately, at this time we do not have any plans to support this.

However, feel free to follow up with @reyneiro or @alexrmacleod (who If I'm remembering correctly implemented a sweet example using MGSwipeTableCell - see conversation in #1586).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment