Skip to content
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

Support all delegate methods in cell models? #54

Open
jessesquires opened this issue Jan 24, 2018 · 1 comment
Open

Support all delegate methods in cell models? #54

jessesquires opened this issue Jan 24, 2018 · 1 comment

Comments

@jessesquires
Copy link
Contributor

For tables we provide:

    var willBeginEditing: WillBeginEditingClosure? { return nil }
    var didEndEditing: DidEndEditingClosure? { return nil }
    var editingStyle: UITableViewCellEditingStyle { return .none }
    var shouldHighlight: Bool { return true }
    var commitEditingStyle: CommitEditingStyleClosure? { return nil }
    var didSelectClosure: DidSelectClosure? { return nil }
    var accessoryButtonTappedClosure: AccessoryButtonTappedClosure? { return nil }
    var shouldIndentWhileEditing: Bool { return false }

For collections we provide:

    var shouldHighlight: Bool { return true }

    var didSelectClosure: DidSelectClosure? { return nil }

    var didDeselectClosure: DidDeselectClosure? { return nil }

Obviously, TableViewModel is further along, however, both should include willDisplay..., didEndDisplaying..., etc. hooks

@jessesquires jessesquires added this to the 0.2.0 milestone Feb 7, 2018
@jessesquires jessesquires modified the milestones: 0.2.0, 0.1.2 Jul 6, 2018
@jessesquires jessesquires self-assigned this Jul 6, 2018
@jessesquires jessesquires removed this from the 0.1.2 milestone Jul 9, 2018
@jessesquires
Copy link
Contributor Author

bumping this out of 0.1.2 for now

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

No branches or pull requests

1 participant