- Refactor the message size calculation logic, centralize them into the
CKMessageSizeCalculator
, remove the logic fromCKMessagesViewLayout
- When connect to hardware keyboard,
CKMessagesView
now just update its contentInset with input toolbar size
- Fix inputToolbar deallocated when presents
CKMessagesViewController
as Model
- CocoaPods officially supported
- Reverse the inputToolbar back as inputAccessoryView
- Refactor
CKMessageBasicCell
, remove unnecessary view layers - Enhance some reusable logic, so now the subclass of
CKMessagesBasicCell
could use its own xib file to design the message UI, without bothering the whole message layout - Optimize
CKMessageBasicCell
constraints batch update logic
- Fixed crash when dismiss
CKMessagesViewController
- Move bubble tail width calculation logic from
CKMessageBasicCell
toCKMessagesViewLayout
to simplify the cell layout logic
- Instead of putting inputToolbar as inputAccessoryView in
CKMessagesViewController
, now just a subview. - When inputToolbar expand higher, move the messages up automatically
- Fixed
CKMessagesView
contentInset.top incorrect
- Refactor
CKMessagesInputToolbar
and its components implementation. Make the implementation more SOLIDCKMessagesInputToolbar
now is more likeUINavigationBar
, focus on laying out items, instead of setting up items, like Send button.- Leave the responsibility to concrete subclass of
CKMessagesViewController
. - Get rid of the multiple level delegates propagating up from
CKMessagesToolbarContentView
toCKMessagesViewController
. - Check out the Sample project to see how to setup
CKMessagesInputToolbar
bar items.
- Add
messsagesViewController
property to UIViewController which adopts theCKMessagePresenting
protocol
- Make the
CKMessageViewCell
as default presenting style for message, unless registering presentor of ceitain by usingCKMessagesViewController.register(presentor:for:)
method
- Rename
CKMessagesViewDecorating
protocol methods to regular delegate naming style - Added height attributes to three labels in the
CKMessageDataViewCell
- Fixed some access privilege issue where were supposed to be public or overrided
- Basic functionally done
CKMessagesKit