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
Remove separator from tableviews #46
Conversation
elland
commented
Nov 2, 2016
- Table view should not be responsible for cell design.
- Table view should not be responsible for cell design.
Merging now so I can move on with work. 🙆 |
Sounds like something project specific. Could you move this change to your project instead? |
No, this is architecture. Having the tableview be responsible for drawing the cell separator makes no sense. This should've been deprecated years ago, certainly legacy from iPhoneOS still. |
I would understand if a lot of people could disagree with you, including @marijnschilling and me. Please roll back. |
I don't understand what you mean. 🤔 |
I'm saying that this is not a good default. And that we should roll back since @marijnschilling and me don't agree with this. |
Since this is a change that needs some discussion, I'm going to roll it back so we can discuss it properly. |
Where we will discuss it? Here? I have arguments up my sleeve |
Here is fine, for posterity. I agree that it's an ugly default, but it is the default. Having the tableview have separators make absolutely no sense to me, it's such a clear violation of responsibilities, but go on. |
I think tableView should be responsible for separators because separators say something about how the cells relate to eachother (i.e: last cell doesnt show separator etc.) It's not something a cell can decide for itself. |
|
You're proposing to draw the separators inside the cells instead, @elland? |
Where else would you draw a cell subview? They're not cell separators, they are decoration inside the cell. |
This shows more clearly when you need a decorator that is not supported by the tableview out of the box. Do you subclass the tableview to override the separator drawing or do you set it to |