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
Deselecting table view cell automatically after selection #126
Comments
Hey, public typealias SelectionAction = (_ sender: UIView) -> SelectionState
public typealias DeselectionAction = (_ sender: UIView) -> SelectionState These two actions asks you to return the selection state, returning |
Got it, thanks. I think I'll need to forgo the selection thing for now unless you may have some pointers on how I could implement it/contribute to make it happen somehow. |
Depends on what you are trying to do. Are you trying to do automatic deselection? You can always query all selected index paths and deselect them by accessing your tableView directly |
That works great thanks :) |
How would I go about deselecting a table view cell? I'm currently using
This code highlights the cell on tap but then the cell never gets deselected afterwards. I took a look at the
CellStyle
docs but couldn't find a propriety that handles deselection. I'm aware there areCellActions
I can use (specifically thedeselectionAction
), although the action returns an item/index so not sure if I can use that.How would I go about having functional table data deselect my cell automatically? Thanks :)
The text was updated successfully, but these errors were encountered: