MessageKit | A community-driven replacement for JSQMessagesViewController | Chat library

 by   MessageKit Swift Version: 4.1.1 License: MIT

kandi X-RAY | MessageKit Summary

kandi X-RAY | MessageKit Summary

MessageKit is a Swift library typically used in Messaging, Chat applications. MessageKit has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

A community-driven replacement for JSQMessagesViewController
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              MessageKit has a medium active ecosystem.
              It has 5668 star(s) with 1108 fork(s). There are 133 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 58 open issues and 1072 have been closed. On average issues are closed in 92 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of MessageKit is 4.1.1

            kandi-Quality Quality

              MessageKit has 0 bugs and 0 code smells.

            kandi-Security Security

              MessageKit has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              MessageKit code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              MessageKit is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              MessageKit releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MessageKit
            Get all kandi verified functions for this library.

            MessageKit Key Features

            No Key Features are available at this moment for MessageKit.

            MessageKit Examples and Code Snippets

            No Code Snippets are available at this moment for MessageKit.

            Community Discussions

            QUESTION

            Delegate and DataSource not woking in MessageKit Swift IOS
            Asked 2021-Aug-20 at 13:27

            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.

            ...

            ANSWER

            Answered 2021-Aug-20 at 13:27

            Have a look at their example project usage. Should clear out lots of confusion.

            Link: https://github.com/MessageKit/MessageKit/tree/master/Example

            As for your query,

            Can't find messagesCollectionView because MessagesViewControllerneeds to be extended to access that.

            Source https://stackoverflow.com/questions/68809228

            QUESTION

            Chat View built with MessageKit never scrolls to last message with a picture
            Asked 2021-Mar-10 at 17:22

            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 all my messages in viewDidLoad, and then updating the MessagesCollectionView in viewWillAppear:

            ...

            ANSWER

            Answered 2021-Mar-10 at 17:22

            It appears that the issue was that these updates were not being called on the right thread; modifying the code to the below solved the issue:

            Source https://stackoverflow.com/questions/66569612

            QUESTION

            MessageKit: the added input bar button only appears after I sent a message
            Asked 2021-Jan-25 at 12:15

            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 happens?

            Thank you!

            ...

            ANSWER

            Answered 2021-Jan-25 at 12:15

            It is happening because of following code -

            Source https://stackoverflow.com/questions/65884488

            QUESTION

            Handling (or disabling) Memoji in InputBarAccessoryView TextField
            Asked 2020-Dec-08 at 18:28

            I'm building a chat app using MessageKit, Firebase and InputBarAccessoryView pods.

            I've found out that when I input a Memoji (aka sticker) in the textfield of the InputBar and press the "send" button, in the database the Memoji will be saved as "\n", which of course will be rendered as a blank bubble in the receiving user screen. The issue is exclusive to Memoji, regular emojis works fine.

            Before sending, I already check if the user is trying to send an empty string, and if the case the message is not sent at all to the database, but I don't know how to check if a Memoji is being input.

            Plus, in the textbar the Memoji is rendered awfully, see pic here, so the best solution would be cutting the problem at its roots and removing the option to input Memoji in the textfield or directly removing them from the keyboard.

            I'm searching for a way to to remove Memoji from users keyboard, or to handle at best these issues, but i've found nothing googling.

            ...

            ANSWER

            Answered 2020-Dec-08 at 18:28

            Memojis work this way: when selected from the keyboard, they are pasted into the TextView. So i just found a decent solution directly from the InputBar API:

            Source https://stackoverflow.com/questions/65128599

            QUESTION

            MessageKit Avatar Loading Issues
            Asked 2020-Aug-26 at 03:05

            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 load then will randomly appear... so I am not sure what to do to ensure they load consistently. Here is an example of where they just load sporadically:

            Ideally I'd want it to load like how the native messaging iOS app works where it loads the avatar at the end of blocks of text for the user. If someone could suggest how to go about this, I'm not sure what to do since the behavior is just completely inconsistent.

            The function used for loading the images:

            ...

            ANSWER

            Answered 2020-Aug-26 at 03:05

            Hell All the issue was that since the cells are reused when a cell gets set to false, then it affects the rest of the cells, so what I had to do was add

            Source https://stackoverflow.com/questions/63542685

            QUESTION

            How to add a UIView on top of MessageKit's messagesCollectionView
            Asked 2020-Jul-21 at 19:58

            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: https://github.com/MessageKit/MessageKit/blob/master/Sources/Layout/MessagesCollectionViewFlowLayout.swift

            My thoughts are to change something in the Layout delegate but I am unsure what and where to change... any thoughts on this would be appreciated!

            Thanks!

            ...

            ANSWER

            Answered 2020-Jul-21 at 19:58

            If you want to have some sort of floating view above the messagesCollectionView, then you can just add it as a subview to the MessagesViewControler's view, just make sure to do it after you've called super.viewDidLoad() because that's where MessageKit adds the collectionView as a subview so if you add it before then, then your view will be behind the collectionView and won't appear. To prevent the cells overlapping with your view, you can use messagesCollectionView.contentInset property to add padding to either the top or bottom if your view is floating there, so that the user can still scroll to all of the messages. Something like this:

            Source https://stackoverflow.com/questions/63021636

            QUESTION

            protobuf: clang frontend command failed with exit code 70 (use -v to see invocation)
            Asked 2020-Jun-24 at 17:09

            Recently I removed Fabric from project and installed Firebase/Crashlytics instead. After that when I try to upload app to AppStore using fastlane or do it using native Xcode tools I faced with such error:

            ...

            ANSWER

            Answered 2020-Jun-15 at 15:46

            Current version of Firebase require at least Xcode 10.3. Details at https://firebase.google.com/docs/ios/setup

            Source https://stackoverflow.com/questions/62382255

            QUESTION

            Add Admob banner to messagekit
            Asked 2020-Jun-18 at 02:08

            how can I add admob banner to messageviewcontroller of messagekit?

            I have tried. The ad is loaded but it not visible.

            I would like to add the banner to the top of view.

            Please help.

            ...

            ANSWER

            Answered 2020-Jun-18 at 02:08

            You need to call super.viewDidLoad() before you add any subviews (I'm not seeing if you even call it at all but it might be in the ... at the end). MessageKit uses viewDidLoad to add the MessagesCollectionView into the view hierarchy and so if you call super after, then your banner view will be underneath the MessagesCollectionView. In this case since you're instantiating a MessagesCollectionView with a custom layout you'll want to call super after instantiating that view but before adding any subviews like this:

            Source https://stackoverflow.com/questions/62439741

            QUESTION

            How to set maximum width of message bubbles in MessageKit
            Asked 2020-Jun-17 at 18:18

            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 a way to be able to set the maximum width of the chat bubbles so that they format more like a text conversation on the native imessage application.

            Currently my messages look like this, but I would want the message below to be less wide and taller:

            ...

            ANSWER

            Answered 2020-Jun-17 at 05:36

            It seems that the library that you are using has already a width set, but in my chat (which is customised) I have a greater than or equal than 0 width constraint a a less than or equal than MAX_WIDTH constraint a leading constraint = 0 and a 'trailing constraint = 0' and those last two I get rid of the leading or trailing depending on if it is the sender or receiver of the message.

            Source https://stackoverflow.com/questions/62420718

            QUESTION

            Message Kit controlling which side each image shows up on
            Asked 2020-Jun-08 at 18:30

            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 am unsure what function that is being set in, or if this is just default and there isn't a way to change it. I see functions for changing the direction of the bubbles, and avatar location but nothing to quickly fix which side each new message goes on. Can someone help me figure out this issue. Here is what it currently looks like:

            But instead I would want the second image to be orange and on the right side, and the orange text to be silver and on the left side. Thanks!

            I feel like this should be a quick fix, I am just unsure which like function likely part of the deleagte that I can change, as it is my first time using this messageKit library.

            ...

            ANSWER

            Answered 2020-Jun-08 at 18:30

            Not sure if this will fix everything but on MessagesDataSource protocol there is isFromCurrentSender

            just reverse the return from that and I believe that most of the components use that function for layout.

            Source https://stackoverflow.com/questions/62237702

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install MessageKit

            For Swift 5.0 use version 3.3.0. For Swift 4.2 use version 3.0.0. Swift 5.3 in Xcode 12 added support for assets in Swift Packages. You can just add MessageKit package to your project by entering it's repository URL. Older versions of Swift and XCode don't support MessageKit via SPM.

            Support

            Great! Look over these things first.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries