Messagekit: Replace static assets with custom drawing assets

Created on 17 Oct 2018  路  3Comments  路  Source: MessageKit/MessageKit

This library looks really promising and I want to get involved. I was wondering if it would be relevant for you all to replace the assets with custom self-drawing views.

In practice this would mean replacing all the @1x, @2x, @3x files with UIViews that uses Core Graphics to draw the underlying chat-bubbles etc. This would completely remove the need to bundle assets into MessageKit - and it would open a host of new customization possibilities regarding how to style the chat bubbles (gradients, outlines, fill etc).

Medium-article about the concept.
Github example with the concept implemented.

question

Most helpful comment

@emmanuelay using static graphics has a faster render time than CoreGraphics.

Sent with GitHawk

All 3 comments

Possible duplicate #307 ?

@emmanuelay using static graphics has a faster render time than CoreGraphics.

Sent with GitHawk

@emmanuelay Fwiw, you can use MessageStyle.custom if you want to do some custom styling for your bubbles. We explored using CoreGraphics but it turned out to be less performant than using images as @nathantannar4 mentioned

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pawankmrai picture pawankmrai  路  3Comments

adri4silva picture adri4silva  路  4Comments

nitrag picture nitrag  路  3Comments

NiklasWilson picture NiklasWilson  路  4Comments

mlequeux picture mlequeux  路  3Comments