MessageViewController
A SlackTextViewController replacement written in Swift for the iPhone X.
Installation
Just add MessageViewController
to your Podfile and install. Done!
Setup
You must subclass MessageViewController
.
Finish setup using a UIScrollView
. Remember this can also be a UITableView
or UICollectionView
.
Customizations
You can customize any part of the UI that you want!
Autocomplete
The base view controller uses a MessageAutocompleteController
control to handle text autocompletion.
This control uses a plain UITableView
to display its autocomplete. Add a dataSource
and delegate
to display and handle interactions.
Then register for autocomplete prefixes you want to respond to and set a delegate
to handle when a prefix is found.
Your delegate needs to implement just one method.
Note: You can perform asyncronous autocomplete searches. Just be sure to call
messageAutocompleteController.show()
when finished.