Questions tagged [messagekit]

A UI Library for adding "Messages" like Chat to any iOS Application. A community-driven replacement for JSQMessagesViewController.

111 questions
0
votes
0 answers

Calculate size of custom collectionView cell at run time with typing text

I have made custom cell and reusable with typingIndicator data source method of MessageKit. I want to calculate size of the custom cell and update the height with the actual text of typed by another user. Can you help me with the below UI?
Vishal
  • 81
  • 1
  • 1
  • 5
0
votes
0 answers

MessagesDisplayDelegate not being called after typing in message

Working with MessageKit and I swear this used to work - typing in a new message doesn't trigger the MessagesDisplayDelegate and thus old messages don't get new formatting like hiding the AvatarView or adjusting the MessageStyle If I call…
Nick Coelius
  • 4,668
  • 3
  • 24
  • 30
0
votes
1 answer

How can we detect if user press the "Send/Return" button on keyboard with MessageKit?

I would like the user to be able to send messages when he/she presses the "Send" button on the keyboard also. For a textField I know that can be achieved with the delagte. But could anyone please point me how can we do this in MessageKit? I was not…
xs w
  • 141
  • 1
  • 11
0
votes
0 answers

Getting an error when sending the imageURl to another ViewController

Have an issue when sending the imageURL to anotherViewController the error is like ( Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value).I'm using messageKit and SdWEbImage pod.When user click on image it goes to…
Faheem
  • 97
  • 5
0
votes
2 answers

How do i get conversation to display at the bottom by default where recent messages are present when entering chat screen?

After tapping on a conversation, the chat screen will start at the top and then scroll all the way to the bottom. How can i bypass starting at the top and the scrolling to immediately displaying the most recent message at the bottom. This line of…
user9650660
0
votes
1 answer

MessageKit - Keyboard does not display when i tap on inputBar

Many of the suggestions i've read said to include self.messageInputBar.inputTextView.becomeFirstResponder() in viewDidAppear() which doesn't seem to work for me. I'm able to type 'ABC' from the computer keyboard, but I want to be able to type from…
user9650660
0
votes
1 answer

Delegate and DataSource not woking in MessageKit Swift IOS

I'm using the MessageKit for chating when I calling the its delegate and datasource it saying (Cannot find 'messagesCollectionView' in scope) please see the code and guide me thanks. import UIKit import FirebaseAuth import MessageKit struct…
0
votes
1 answer

How to clear text in MessageKit inputBar after Pressing Send in inputBarAccessoryView

I'm building a real time chat application. Where I use message kit and inputBarAccessoryView library to make a conversation between 2 users. I've used - extension ChatViewController: InputBarAccessoryViewDelegate { func inputBar(_ inputBar:…
mefahimrahman
  • 197
  • 2
  • 6
  • 29
0
votes
1 answer

Can I create custom cells like these in swift 5 ios using messageKIt?

I am building a chat app and I am new to ios, I want to build custom cells like these using messageKIT, can anybody help me with any resource or code?
0
votes
1 answer

configureAvatarView not working properly in MessageKit

I'm using MessageKit to create a chat interface for my app. I'm currently using this code from their examples to not show a user's avatar if the multiple messages are from the same author: func configureAvatarView(_ avatarView: AvatarView, for…
narner
  • 2,908
  • 3
  • 26
  • 63
0
votes
1 answer

Chat View built with MessageKit never scrolls to last message with a picture

I'm building a chat view for my app with MessageKit. Image messages are something that this chat view will support. I'm currently having an issue where if the last message is a picture message, the message won't be properly displayed: I'm loading…
narner
  • 2,908
  • 3
  • 26
  • 63
0
votes
1 answer

Where is the condition of align messages to the left and to the right in Official Example?

I have downloaded and learned the official MessageKit example. My own messages are displayed on the right, and opponent messages are displayed on the left. However, I can not find a condition in the code that determines where the message will be…
warma2d
  • 1
  • 2
0
votes
1 answer

MessageKit: the added input bar button only appears after I sent a message

I'm building an app using MessageKit. I added an InputBarItem to the input bar, but it doesn't appear when the view first appears. Only after I pressed "send", the item shows up. Below is part of the ChatViewController. Any idea why this…
guckmalmensch
  • 973
  • 2
  • 9
  • 22
0
votes
2 answers

How to retrieve message as a String from MessageKit

I am using MessageKit to make a basic chatting app. However, I wanted to do something with the text of the latest sent message. This is an example of what I want: print("This is what I was talking about:\n\n", newMessage.kind) I get: text("Hi…
0
votes
0 answers

Showing images from remote server inside message bubble MessageKit swift

I'm trying to show image inside message bubble of Message Kit. As I got to know Message Kit has a lot of types of its bubbles. For my approach .photo(ImageMediaItem) , I think, is the best message kind. I would like to see loaded imaged inside…
Andrew
  • 1,947
  • 2
  • 23
  • 61