Questions tagged [messagekit]

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

111 questions
2
votes
0 answers

Using custom messages with MessageKit stacks new messages on top of each other when adding new messages or scrolling

I am trying to add custom messages using Message Kit, and it's displaying as expected except my custom messages are getting stacked with other previous messages on top of each other as I add new messages, and when I scroll these messages keep…
Camille Basbous
  • 299
  • 5
  • 11
  • 34
2
votes
2 answers

Is there a way I can change the background color of the whole input bar in Message Kit?

I wish to change the background color of the input accessory bar to a reddish color. In the example code for MessageKit, there isn't any to change the background color. And running this piece of code doesn't work: messageInputBar.backgroundColor =…
Ralph Lee
  • 87
  • 2
  • 9
2
votes
1 answer

How to put messageBottomLabel inside of message bubble?

I am using messageKit. I want to add time when the message was sent inside of messageBottomLabel. However visually it is outside of message bubble. But I want it to be inside of the bubble, like this: How can I do it?
2
votes
1 answer

Handling (or disabling) Memoji in InputBarAccessoryView TextField

I'm building a chat app using MessageKit, Firebase and InputBarAccessoryView pods. I've found out that when I input a Memoji (so, a sticker) in the textfield of the InputBar and press the "send" button, in the database the Memoji will be saved as…
oneshot
  • 591
  • 1
  • 5
  • 27
2
votes
2 answers

iOS 14 Fatal Exception: NSInternalInconsistencyException Path wasn't found in current data model

I'm getting the following error after upgrading to iOS 14. I'm using a library called MessageKit that this is built with. While preparing update a visible view at {length = 2, path = 25 - 0} wasn't found in the…
Unome
  • 6,750
  • 7
  • 45
  • 87
2
votes
1 answer

MessageKit Avatar Loading Issues

I am using messageKit to create a live messaging portion for my iOS application. I am running into an issue with the avatar circles not loading properly. Sometimes they load sporadically, other-times they don't load at all, and sometimes they don't…
Wana_B3_Nerd
  • 613
  • 3
  • 7
  • 21
2
votes
1 answer

Messagekit Navigation bar is not showing up

How can i show the default or custom navigation bar ? tried everything but nothing works , It seems like nothing is on the top , its a messageViewcontroller of messagekit and couldn't find any delegate method for navigation bar , it would be nice…
Hanzala Raza
  • 149
  • 1
  • 16
2
votes
1 answer

Center views horizontally in iOS stack view

I'm trying to achieve the following layout (views centered horizontally): So I set up a stack view like so: let quickPromptsView: UIStackView = { let sv = UIStackView() sv.axis = .horizontal sv.alignment = .center sv.distribution =…
Cesare
  • 9,139
  • 16
  • 78
  • 130
2
votes
1 answer

Tap specific AccessoryView in MessageKit

I have a question on MessageKit. How could we specified particular chat cell so that when we click on didTapAccessoryView(in cell:) we get index of that accessoryView. I need index to inject some information prior to showing new VC. Is it even…
user256419
  • 81
  • 2
  • 10
2
votes
2 answers

Duplicate collectionView cells after reloadData with Firebase query

I have a Firebase snapshot listener that checks for new documents, adds them to an array (the collectionView datasource), and then reloads the collectionView. However, I'm getting duplicate cells in the collectionView. I currently have 3 objects in…
winston
  • 3,000
  • 11
  • 44
  • 75
2
votes
0 answers

UIScrollView (+MessageKit/Twilio) Load Messages when scrollView nears top like WhatsApp (Optimistic Loading)

I have spent a while scouring the internet but have not found a good solution. Basically the problem is, in my messagecollectionview (eg, like a list of messages on any app) I want a smart and smooth way of reloading the messages without messing…
AlexK
  • 336
  • 8
  • 21
  • 41
2
votes
0 answers

Why does the MessageKit (`JSQMessagesViewController` replacement) input field disappears when VC segues from-right?

I am trying to integrate MessageKit (JSQMessagesViewController replacement) into my project. From my didSelectRowAt of messages table I segue to my ConversationVC which subclasses MessagesViewController (MessageKit requirement) func tableView(_…
Roggie
  • 1,157
  • 3
  • 16
  • 40
1
vote
0 answers

MessageKit- SwiftUI Input Bar Placement on top of screen

My application is in SwiftUI. I am implementing Message Kit as a chat feature, however, the input bar placement for the SwiftUI example in MessageKit awkwardly snaps to the top of the screen when the keyboard appears. Current SwiftUI…
aa._.ron
  • 25
  • 3
1
vote
0 answers

Asynchronous Data Loading Not Updating UI in UICollectionView

I'm developing a messaging app that fetches messages and their associated media from a server. I'm using a UICollectionView to display these messages, initially showing a placeholder until the actual data is loaded. I fetch the data using a variety…
1
vote
0 answers

MessageKit CustomCell "Invalid update: invalid number of sections."

I am trying to create custom cell for messageKi, following instruction but have an error: Thread 1: "Invalid update: invalid number of sections. The number of sections contained in the collection view after the update (1) must be equal to the number…
PavelPud
  • 31
  • 3