Messagekit: Example of custom cell in example project or docs

Created on 9 May 2018  路  6Comments  路  Source: MessageKit/MessageKit

I know you guys just got to version 1.0 beta, but it would be cool if the docs or example project had an example of creating a custom cell. Currently, need a chat framework with the ability to create custom cells. I'm gonna mess with the example and try to do it myself but when you guys get a chance it would be much appreciated.

documentation

All 6 comments

Thanks @stshelton. I agree. We need to work on our in source docs and some custom docs around topics like this. I鈥檓 just very short on free time lately. Would be awesome if anyone is willing to contribute

Sent with GitHawk

@SD10 I'm also interested in this topic.

Could you show me an entry point (e.g. a method name) where I could quickly start to dig into it?

Thanks.

I think docs around making a custom cell would probably be easiest for me to do. We do need to document the public API in Xcode though.

See #686

Hey after looking at #686, I went with @Luke47 method for creating a custom cell by subclassing MessageContentCell. So that I could still use those extra features like top and bottom label, sizing and positioning and the avatar view. When displaying my custom cell everything is correctly positioned but MesssageDataSource delegate only calls methods like "ConfigureAvatarView", and "cellTopLabelAttributedText" for the non custom cells. Yet "cellTopLabelHeight" and "messageForItem" is called everytime even for custom cells. Id like to use all of the features of MessageDatSource to be able to add timestamps to those custom cells, If you guys could point me in the right direction it would be much appreciated. Also, I did notice that within my subclass of MessageContentCell you can access there avatar view and labels, I would rather use the MessageDataSource Delegate to populate those fields though.

Hi @stshelton can you please open a new issue for this?

Sent with GitHawk

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Leon12345679 picture Leon12345679  路  3Comments

mlequeux picture mlequeux  路  3Comments

pawankmrai picture pawankmrai  路  3Comments

asn111 picture asn111  路  3Comments

emmanuelay picture emmanuelay  路  3Comments