slackhq / SlackTextViewController

⛔️**DEPRECATED** ⛔️ A drop-in UIViewController subclass with a growing text input view and other useful messaging features
https://slack.com/
MIT License
8.32k stars 1.08k forks source link

Reasons to prefer CollectionView over TableView? #111

Closed chug2k closed 9 years ago

chug2k commented 9 years ago

Sorry if opening an issue isn't the right thing to do here, wasn't sure how else to ask a question. What are the reasons to prefer UICollectionView over UITableView? It seems like you're trying to move towards UICollectionView. Is it just for the possibility of having a non-vertical-message-list layout?

dzenbot commented 9 years ago

The reason behind UICollectionView support is mainly to replace, someday soon, the hacky inverted mode when using UITableView to show messages from the bottom to the top. There is a branch called swift-example with a custom UICollectionViewLayout trying to achieve this this, but it's still rusty and far from being ready to merge into master.

As for now, the best option is still using UITableView for traditional message app layout. I how many people as used the UICollectionView version so far, and why would they. Might be interesting tho know tho.

I hope this answers your question. And YES, this is the right place to ask this sorts of things ;)

chug2k commented 9 years ago

thanks! i did see that inverted thing (and discussion about it in HN). thanks again for answering my question!