Update Podspec and clean up code

This commit is contained in:
Steven Deutsch
2017-07-27 02:13:57 -05:00
parent cb90c7f007
commit db2e929296
11 changed files with 42 additions and 28 deletions
@@ -105,13 +105,13 @@ class ConversationViewController: MessagesViewController, MessagesDataSource, Me
}
extension ConversationViewController: MessageInputBarDelegate {
func sendButtonPressed(sender: UIButton) {
// Maybe we should pass the UITextView or text with the sender?
guard let message = messageInputBar.inputTextView.text else { return }
func sendButtonPressed(sender: UIButton, textView: UITextView) {
guard let message = textView.text else { return }
messages.append(MockMessage(text: message, sender: currentSender(), id: NSUUID().uuidString))
messagesCollectionView.reloadData()
}