4.0.0 - The King is dead, long live the King
iOS 12 has been around for a while, but with upcoming release of iOS 16, we are ready to let this version go and rest in peace forever. The same could be said about CocoaPods - what used to be the major and most important thing on iOS for developing apps with 3rd party libraries - has been replaced by natively supported way called Swift Package Manager.
Sit tibi terra levis.
Version 4.0.0 comes with couple of breaking changes, please refer to the MIGRATION_GUIDE.md for easy transition from V3 to V4.
Added
- New method in
MessagesLayoutDelegatefor setting message avatar size ddfc814 by @martinpucik MessageInputBarKindenum for customizingmessageInputBarinsideinputContainerView#1707 by @martinpucik
Changed
- Breaking change: Dropped CocoaPods support
- Breaking change: Dropped support for iOS 12 2bd234b by @martinpucik
- Breaking change: Moved messageInputBar from inputAccessoryView to a subview in MessagesViewController #1704 by @martinpucik
- Breaking change: Renamed
func currentSender() -> SenderTypetovar currentSender: SenderType#1714 by @martinpucik - Deprecation: Deprecated
maintainPositionOnKeyboardFrameChangedMovedin favor ofmaintainPositionOnInputBarHeightChangedwhich better describes the intended use of this property #1704 by @martinpucik - Breaking change: Added an argument to
messageContainerMaxWidthcd4f75b by @martinpuciknow has IndexPath argumentMessageSizeCalculator.messageContainerMaxWidth(for message: MessageType) -> CGFloat
MessageSizeCalculator.messageContainerMaxWidth(for message: MessageType, at indexPath: IndexPath) -> CGFloat
- Breaking change: Added an argument to
messageContainerSizecd4f75b by @martinpuciknow has IndexPath argumentMessageSizeCalculator.messageContainerSize(for message: MessageType) -> CGSize
MessageSizeCalculator.messageContainerSize(for message: MessageType, at indexPath: IndexPath) -> CGSize
- Updated InputBarAccessoryView to v6.1.0 #1716 by @martinpucik
- Observe inputBar frame change to update collectionView bottom inset instead of keyboard show/hide notifications #1726 by @martinpucik
Fixed
- Fixed iOS 13 deprecation warnings #1715 by @kaspik
- Updating bottom chat collectionView inset after InputBar container view frame change #1725 by @martinpucik
Removed
- NSConstraintLayoutSet.swift #1700 by @martinpucik
- Deprecated
Senderstruct. Clients should useSenderTypeprotocol #1713 by @martinpucik - Unavailable
MessageInputBarandMessageInputBarDelegate. Clients should useInputBarAccessoryViewandInputBarAccessoryViewDelegate#1713 by @martinpucik func scrollToBottom(animated:)onMessagesCollectionView. Clients should usefunc scrollToLastItem(:)#1713 by @martinpucik