Skip to content

Latest commit

 

History

History
183 lines (117 loc) · 10.4 KB

CHANGELOG.md

File metadata and controls

183 lines (117 loc) · 10.4 KB

CHANGELOG

The changelog for MessageKit. Also see the releases on GitHub.


Upcoming release

Added

  • Breaking Change .custom((MessageContainerView)->Void) case to MessageStyle enum. #163 by @SD10.

  • Breaking Change UIEdgeInsets associated value to all LabelAlignment enum cases. #166 by @SD10.

  • Breaking Change .emoji(String) case to MessageData enum. #222 by @SirArkimdes.

  • Breaking Change TextMessageDisplayDelegate to handle enabledDetecors(for:at:in) and moves textColor(for:at:in) to this namespace. #230 by @SD10

  • LocationMessageDisplayDelegate to customize a location messages appearance and add a MKAnnotationView to location message snapshots. #150 by @etoledom.

  • messageLabelInsets(for:indexPath:messagesCollectionView method to MessagesLayoutDelegate. #162 by @SD10.

  • animationBlockForLocation(message:indexPath:messagesCollectionView) method to LocationMessageDisplayDelegate to customize the display animation of the location message's map. #210 by @etoledom.

  • scrollsToBottomOnFirstLayout property to automatically scroll to the bottom of MessagesCollectionView on first load. #213 by @FraDeliro.

  • scrollsToBottomOnKeyboardDidBeginEditing property to automatically scroll to the bottom of MessagesCollectionView when the keyboard begins editing. #217 by @SD10.

  • additionalTopContentInset property to MessagesColectionViewController to allow users to account for extra subviews. #218 by @SD10.

  • messagePadding(for:at:in) method to MessagesLayoutDelegate to dynamically set padding around MessageContainerView. #208 by @SD10.

Fixed

  • MessageInputBar now correctly sizes itself when breaking its max height or pasting in large amounts of text #173 by @nathantannar4.

  • MessageInputBar faced a rendering issue on subsequent presentations of a MessageViewController. This was originally patched by adding a copy to the view during viewDidAppear(animated:) however that led to other issues #116. A correct patch has now been applied. #178 by @nathantannar4.

  • Incorrect sizing of MessagesCollectionViews content inset by setting extendedLayoutIncludesOpaqueBars to true by default. #204 by @SD10.

  • scrollIndicatorInsets to match the insets of the MessagesCollectionView. #174 by @etoledom.

  • MediaMessageCell had an offset PlayButtonView that was being constrained to the cell and not the message container. #239 by @SirArkimedes.

Changed

  • Breaking Change snapshotOptionsForLocation method is now part of LocationMessageDisplayDelegate. #150 by @etoledom.

  • Breaking Change setMapSnapshotImage now includes an annotationView: MKAnnotationView? argument. #150 by @etoledom.

  • Breaking Change messageLabelInsets has been made into a method on MessagesLayoutDelegate. #162 by @SD10.

  • Breaking Change messageLabelInsets now defaults to a left inset of 18 for incoming messages and a right inset of 18 for outgoing messages. #162 by @SD10.

  • Breaking Change InputTextView's UITextViewDelegate is now set to self #173 by @nathantannar4.

  • Breaking Change MessagesDisplayDelegate messageHeaderView(for:at:in) and messageFooterView(for:at:in) to return non-optionals. #229 by @SD10.

  • Breaking Change MessagesCollectionView dequeueMessageHeaderView(withIdentifier:for:) & dequeueMessageFooterView(widthIdentifier:for:) have been renamed to dequeueReusableHeaderView(CollectionViewReusable.Type,for:) & dequeueReusableFooterView(CollectionViewReusable.Type,for:). #229 by @SD10.

  • configure method of all MessageCollectionViewCell types to be marked as open. #200 by @SD10.

  • MessageHeaderView, MessageFooterView, and MessageDateHeaderView initializers to be public. #175 by @cwalo.

  • UICollectionViewDataSource and UICollectionViewDelegate methods of MessagesViewController to be open. #177 by @cwalo.

Removed

  • Breaking Change cellTopLabelInsets and cellBottomLabelInsets from MessagesCollectionViewFlowLayout. #166 by @SD10.

  • Breaking Change messageToViewEdgePadding on MessagesCollectionViewFlowLayout in favor of messagePadding(for:at:in). #208 by @SD10.

Added

  • Support for Swift 4

Added

  • Support for Swift 3.2 and Xcode 9

This release closes the 0.8 milestone.

Added

  • Breaking Change MessageData now supports .photo(UIImage), .location(CLLocation), .video(file: URL, thumbnail: UIImage) cases.
  • Breaking Change MessageCollectionViewCell is now generic over its ContentView constrained to UIView.
  • Breaking Change TextMessageCell subclass of MessageCollectionViewCell to support text messages.
  • MediaMessageCell subclass of MessageCollectionViewCell to support photo/video messages.
  • LocationMessageCell subclass of MessageCollectionViewCell to support location messages.
  • Adds LocationMessageLayoutDelegate for sizing of location messages.
  • Adds MediaMessageLayoutDelegate for sizing of media messages.
  • AvatarView now supports fontMinimumScaleFactor, placeholderFontColor, and placeholderFont properties

Changed

  • Keyboard handling no longer adjusts the top & bottom insets for MessagesCollectionView.
  • MessageStyles are now applied as a mask on the MessageContainerView

Deprecated

  • MessageCollectionViewCell's messageLabel has been renamed to messageContentView
  • AvatarView's setBackground(color: UIColor) method has been deprecated in favor of backgroundColor
  • AvatarView's getImage() method has been deprecated in favor of a new image property.

Fixed

  • Fixes extra height on text messages due to font specified in MessagesCollectionViewFlowLayout not being applied.
  • AvatarView's placeholder image is no longer constrained to a size of 30 x 30.
  • AvatarView's placeholder text can now auto-adjust based on available width.
  • Fixes invalid image path for Carthage resources.
  • Fixes missing asset bundle resources for Carthage installation.
  • Fixes missing asset bundle resources in framework.

This release closes the 0.7 milestone

This release closes the 0.6 milestone.

This release closes the 0.5 milestone.

This release closes the 0.4 milestone.

This release closes the 0.3 milestone.

This release closes the 0.2 milestone.

This release closes the 0.1 milestone.

Initial release. 🎉