Live data from Hacker News

SlackTextViewController: A new growing text input for iOS

github.com

11–20 of 35 posts

Re: SlackTextViewController: A new growing text input for iOS

#11
post #6

Earlier quoted context omitted.

Looks really great. Have you thought about submitting to CocoaControls? ( https://www.cocoacontrols.com/ ) It's the second place that I look for iOS components (after a simple Google search, that is).

Thanks! We submitted and it should be up on their site soon. (Pretty sure they are still reviewing it)

Just did :)

Re: SlackTextViewController: A new growing text input for iOS

#12
post #2

We tried other popular text input projects for iOS, but none felt right and worked fully for our needs. We ended up spending a big portion of our time maintaining custom versions of other projects. For that reason, we decided to build our own growing text input from scratch, and we've just released it as open source. We hope you all will find it useful!

Looks really great. Have you thought about submitting to CocoaControls? ( https://www.cocoacontrols.com/ ) It's the second place that I look for iOS components (after a simple Google search, that is).

Thanks, Liyan :) I'm happy to hear it's useful for you!

Re: SlackTextViewController: A new growing text input for iOS

#13
post #10

As someone that doesn't do iOS development it boggles my mind that you guys have to build this feature into your apps.

I'm with you. I don't do iOS development at all, but I will literally sit there and go through the entire code of every iOS control submission to Hacker News just to see how they accomplish what they do. I cannot believe how much code it takes to do something I feel you can accomplish easily in javascript.

Kudos to all the iOS developers out there. I don't know how you guys manage to do it, but I'm sure glad you do and are willing to share your code with the rest of us.

Re: SlackTextViewController: A new growing text input for iOS

#16
So I'm making iOS apps sometimes, but have not implemented a chat feature.

Why would I want to use this rather than a UITableView where I append the newest message in the end of the UITableView every time (you'd have to increase it's length +1 for each new message, but hey that may be ok)?

Re: SlackTextViewController: A new growing text input for iOS

#17
post #14

Apple developed Swift to make developer's more expressive and efficient yet they do not provide simple controls like this. Can't tell you how many hours I wasted in the chat portion of my app trying to get a simple growing text input to work!

Try this out and let us know what you think. It's been designed in a way where you shouldn't care about the growing text input and trivial features related to it, but to build your tableView/collectionView cells and content.

Re: SlackTextViewController: A new growing text input for iOS

#18
post #16

So I'm making iOS apps sometimes, but have not implemented a chat feature. Why would I want to use this rather than a UITableView where I append the newest message in the end of the UITableView every time (you'd have to increase it's length +1 for each new message, but hey that may be ok)?

This implements the input box, not the rest of it. Apparently, an automatically (vertically) expanding input box does not exist for iOS in the standard libraries for it.

Re: SlackTextViewController: A new growing text input for iOS

#19
post #8
post #7

Earlier quoted context omitted.

Atomic commits yo! But yes, it was built with much love and attention to details.

Agreed! Where I work, GitHub graphs make it look like I'm doing 5 times more work than everyone else. But I'm really just pushing commits more often.

Since January I've been insisting that we make atomic commits, but now I'm looking to switching to squashing them into one before merging. This makes it a lot easier to roll back a whole feature and not half way through it.

Plus, our graphs look ridiculous, I'm easily 5-10 times over the others, but it's not that I'm doing more work, I just commit more often.

Post reply on HN