A UI Library for adding "Messages" like Chat to any iOS Application. A community-driven replacement for JSQMessagesViewController.
Questions tagged [messagekit]
111 questions
1
vote
0 answers
iOS MessageKit didTapAccessoryView not getting called
I am using MessageKit to implement the Chat UI for my App. I have added an icon in AccessoryView using configureAccessoryView method. Also, I implemented didTapAccessoryView from MessageCellDelegate. But the method is not getting called while…

Ahsan Aasim
- 1,177
- 3
- 14
- 40
1
vote
1 answer
Open image in MessageKit when user tap
How can I show image when user click on it?
func configureMediaMessageImageView(_ imageView: UIImageView, for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) {
switch message.kind {
case…

Am1rFT
- 227
- 5
- 18
1
vote
1 answer
messageCollectionView in MessageKit not being recognized
I'm new to Xcode development and very new to MessageKit. I'm currently following an iOS Academy video to get the messaging section of my app working (Great series of videos by the way).
I have installed the MessageKit cocoa pod (and reinstalled it…

Yianni_Zav
- 31
- 2
1
vote
1 answer
Doubletap recognizer for message bubbles (Messagekit)
I want to add the feature to double tap a given message bubble.
Code so far:
@objc func doubleTap(gesture: UITapGestureRecognizer) {
print("double tap called")
}
func messageStyle(for message: MessageType, at indexPath: IndexPath, in…

Medo Almouhtadi
- 100
- 8
1
vote
1 answer
How I can update data inside messageCollectionView cell swift?
I would like to show loaded image in the cell. I tried to make it in such way:
messages.filter { (mType) -> Bool in
mType.messageId == "\(message.id)"
}.first?.kind = .photo(ImageMediaItem(image:…

Andrew
- 1,947
- 2
- 23
- 61
1
vote
2 answers
How to set maximum width of message bubbles in MessageKit
I have been using MessageKit for my live chat feature for my application. One of the issues I am running into is that long messages just look very weird on the screen as the width of the bubbles doesn't seem to be restricted. I wanted to figure out…

Wana_B3_Nerd
- 613
- 3
- 7
- 21
1
vote
1 answer
Message Kit controlling which side each image shows up on
I am using the MessageKit to create a real time chat in my Swift App. One issue I am getting is, I want my chat from the user to be on the left, and the chat from the person they are talking to, to be on the right. As of now this is flipped, and I…

Wana_B3_Nerd
- 613
- 3
- 7
- 21
1
vote
0 answers
Creating Realtime Chat using MessageKit and MongoDB swift 5
I am trying to implement a realtime chat into my iOS application. I am using MessageKit and following this tutorial: https://medium.com/@ibjects/simple-text-chat-app-using-firebase-in-swift-5-b9fa91730b6c
The tutorial is fore firebase but I am…

Wana_B3_Nerd
- 613
- 3
- 7
- 21
1
vote
1 answer
MessageKit set up MessageLabelDelegate for didSelectURL
I'm trying to open url from messages embedded in an NSAttributedString. I'm using the latest version of MessageKit. I'm using the function didSelectURL, but it doesn't seem to reach that part of the code. I came across this solution, but I wanted to…

gastonar
- 11
- 2
1
vote
1 answer
Messages showing up on wrong side and with incorrect size/content (MessageKit)
I am using MessageKit for the chat feature in an app I am developing, and am encountering a strange layout bug when inserting sections into the messagesCollectionView. When opening a conversation, the thread loads correctly from cache, but when…

Jai
- 87
- 8
1
vote
0 answers
Include a phone number and a display name, when pressing @
Currently I've included a display name and a phone number as shown in the code. But when I'm showing the message to the user it should show @displayName, and when sending the message to the server it should go as @phoneNumber. How to have this…

senuraa
- 133
- 1
- 5
1
vote
1 answer
No such module 'InputBarAccessoryView'
Trying to get MessageKit setup within my project. I'm getting the following error - 'No such module 'InputBarAccessoryView' within the
MessagesViewController+Keyboard.swift:26:8: No such module 'InputBarAccessoryView'
I've tried installing pods,…

techgirl
- 293
- 1
- 3
- 18
1
vote
0 answers
MessageKit won't build when integrating into app
I'm trying integrate MessageKit with my project. I'm getting 3 errors when attempting to build:
1. Header 'MessageKit-Swift.h' not found
2. :0: error: could not build Objective-C module 'MessageKit'
3. No such module 'InputBarAccessoryView'
I've…

techgirl
- 293
- 1
- 3
- 18
1
vote
1 answer
Display a system message in a chatroom
I am struggling on how to display a system message in a chatroom. Currently, I have already built the chatroom using MessageKit in Swift and finished the overall UI. What I want is, when I click the red button at the upper right corner, a system…

Kevin
- 23
- 3
1
vote
0 answers
How to use properly MessageKit and ScaleDrone?
I am encountering some big problems while using the pod MessageKit and the server/website ScaleDrone in Swift 5.0. I really need your help.
What I want: I would like to make a "chat" VC in my app. Before this VC, there is a Table VC with contacts…

Auyem
- 51
- 6