Questions tagged [messagekit]

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

111 questions
11
votes
2 answers

How to properly implement MessageKit in swift 4? | Delegate functions are not being called

I was trying to implement MessageKit (Replacement of JSQMessagesViewController) for chat feature, in my iOS swift application. I have followed this raywenderlich tutorial. I installed using Pods and followed this tutorial step by step. My messages…
Awais Fayyaz
  • 2,275
  • 1
  • 22
  • 45
7
votes
2 answers

MessageKit - How to async load images in subclass of MessagesViewController?

Recently I have been developing a chat application and was having trouble asynchronously loading images with the chat. Working with MessageKit - 2.0 I had tried this import MessageKit class Image: MediaItem { var url: URL? var image:…
Paul Nyondo
  • 2,126
  • 2
  • 23
  • 30
6
votes
1 answer

MessageKit Collection View doesn't display any cells after adding support for a custom cell`

I've read through the guide for creating a custom cell in MessageKit here, and SO questions like this I'm trying to create a custom cell; here's my code for a cell that inherits from a UICollectionViewCell: import UIKit import MessageKit open class…
narner
  • 2,908
  • 3
  • 26
  • 63
5
votes
2 answers

MessageKit Not Showing Message Input Bar Swift 5

So This is the controller hierarchy tabBarController -> some controller & chat channel controller. and this chat channel controller is also a navigation controller. When I select row it pushes to chat controller which is of class…
Dayson D
  • 321
  • 2
  • 7
5
votes
3 answers

Swift MessageKit problems - running swift 4.2

I had just updated my code to swift 4.2 and fixed all the errors. Now I am trying to use 'MessageKit' to put a messenger into my app. Everything is updated yet I am having these problems... now it is saying for MessagesInputBarDelegate "Use of…
Lukas Bimba
  • 817
  • 14
  • 35
4
votes
0 answers

UIViewControllerRepresentable MessageKit UICollectionView scrolls past bottom item when keyboard is shown

I am building an app with SwiftUI and I wanted to use MessageKit, so I used a UIViewControllerRepresentable to show a MessageKit view. However, when the keyboard is shown messages are able to scroll past the bottom of the view. Here is a screenshot…
ImTheSquid
  • 365
  • 6
  • 15
4
votes
0 answers

Images not appearing in chat - MessageKit

I've seen similar questions but the answers haven't worked for me. Code isn't pretty but here goes. I've implemented MessageKit and my images are not showing up when previous messages are loaded or when an image is sent. The images are showing as…
techgirl
  • 293
  • 1
  • 3
  • 18
4
votes
3 answers

Enlarging image view when tapped in MessageKit - Swift

I am trying to enlarge an image in the MessageCollectionView in a cell when it is tapped, something standard in most messaging apps. I successfully am able to recognize the user's tap on each cell and determine if it is a photo or a text cell, but…
douglasrcjames
  • 1,133
  • 3
  • 17
  • 37
4
votes
2 answers

How to create custom cell with MessageKit?

I want to create following custom chat bubble using MessageKit I am using CustomCell example in the provided sample. But that does not add the chat bubble background & positioning based on the sender type. How to create the custom cell with the…
Bharath
  • 3,001
  • 6
  • 32
  • 65
3
votes
1 answer

How to add a UIView on top of MessageKit's messagesCollectionView

I am trying to add a UIView on top of the messagesCollectionView, but the collectionview seems to take up the whole screen making the UIView I want to add unable to be seen. I am looking at their documentation here:…
Wana_B3_Nerd
  • 613
  • 3
  • 7
  • 21
3
votes
1 answer

Show the bottom of collectionView on first load without scrolling and lazy loading

I have developed a Chat App, where I used MessageKit for my iOS app. My issues is when I open any Chat screen, messageCollectionView starts from top ,showing old chats. I need to start the collectionView from bottom as soon as I open any chat…
TMirza
  • 47
  • 5
3
votes
3 answers

MessageKit InputBar is hidden/removed on ViewController dismissal

I am using MessageKit 3.0.0-swift5 branch for chats. Clicking on the message, I am presenting the ViewController. When Viewcontroller is dismissed, I am not able to access InputBar. Has anybody come across this issue? Check the video here. Code: //…
3
votes
1 answer

Left alignment for message threads `MessageKit` swift

I'm implementing a simple chat screen using MessageKit library. As you can see in the first screenshot, everything sounds normal, but what I am asked to do is to align all threads to the left (second screenshot). I tried to find a way to change the…
Hassan Shahbazi
  • 1,543
  • 9
  • 26
3
votes
1 answer

Tap event not detected in Swift Messagekit app?

I have an app using the standard implementation of Messagekit but the didTapMessage event isn't firing when I tap the message text (the didTapAvatar function isn't run at all either). I'm not using a custom cell so I don't think I need to use a…
winston
  • 3,000
  • 11
  • 44
  • 75
3
votes
1 answer

How to change bubble outline color using MessageKit in swift 4

I tried to change bubble outline with below code but always showing black outline color. func messageStyle(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> MessageStyle { return…
Asif Raza
  • 836
  • 12
  • 29
1
2 3 4 5 6 7 8