steve228uk / MessengerKit

:speech_balloon: A UI framework for building messenger interfaces on iOS
MIT License
1.48k stars 128 forks source link

How to add a small simple UIlabel at the bottom to the chat cell #56

Closed korantengNanaYaw closed 4 years ago

korantengNanaYaw commented 4 years ago

i need help adding a small UILabel to the text chat bubble which will display the time the message was sent/created, after i edited the xib file , and added the UIlabel it breaks the existing constraint . any help will be appreciated

IMG_82CE77B69016-1

sjoness commented 4 years ago

@korantengNanaYaw you need to subclass MSGSectionReusableView and create a footer view for your style. See MSGImessageFooterView.swift for example. You then need to register the footer view in your MSGCollectionView subclass e.g. MSGImessageCollectionView.swift.