Messagekit: How to change font size of message text?

Created on 27 Jul 2018  路  6Comments  路  Source: MessageKit/MessageKit

Hi, I am stuck on how to change font size of message text displayed.

I am using pod 'MessageKit', '0.13.4'
Latest ios 11.
Iphone8 emulator.

Please help me, I know its a silly question for u.

Thanks
Rahul

question stale

Most helpful comment

@rahulsunrays The TextMessageSizeCalculator object has a messageFont property

All 6 comments

You need that use an NSAttributedString for the MessageType

Sent with GitHawk

Hi Nathan, thank you for your response, there is no method to override in MessagesDisplayDelegate for fonts, I see methods for textcolor detectors. Can u please elaborate how can I use it?

oh I got it, I think u want me to use init(attributedText: NSAttributedString, sender: Sender, messageId: String, date: Date) {
self.init(data: .attributedText(attributedText), sender: sender, messageId: messageId, date: date)
}

@rahulsunrays The TextMessageSizeCalculator object has a messageFont property

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 馃檹 Also, feel free to open a new issue if you still experience this problem 馃憤.

Was this page helpful?
0 / 5 - 0 ratings