Merge remote-tracking branch 'origin/3.0.0-beta' into 3.0.0-beta

This commit is contained in:
Nathan Tannar
2019-02-24 14:07:24 -08:00
3 changed files with 17 additions and 3 deletions
+5 -3
View File
@@ -51,6 +51,11 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
## [2.0.0](https://github.com/MessageKit/MessageKit/releases/tag/2.0.0)
### Added
- **Breaking Change** Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`.
[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus)
### Changed
- Change acl of `handleGesture(touchLocation:)` in `MessageLabel` from internal to open.
@@ -79,9 +84,6 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa
- Added `additionalBottomInset` property that allows to adjust the bottom content inset automatically set on the messages collection view by the view controller.
[#787](https://github.com/MessageKit/MessageKit/pull/787) by [@andreyvit](https://github.com/andreyvit)
- Added new methods to simplify using of custom messages: `customCellSizeCalculator(for:at:in:)` for `MessagesLayoutDelegate` and `customCell(for:at:in:)` for `MessagesDataSource`.
[#879](https://github.com/MessageKit/MessageKit/pull/879) by [@realbonus](https://github.com/RealBonus)
### Fixed
- **Breaking Change** Fixed typo of `scrollsToBottomOnKeybordBeginsEditing` to `scrollsToBottomOnKeyboardBeginsEditing`.
+7
View File
@@ -82,6 +82,13 @@ To integrate MessageKit using Carthage, add the following to your `Cartfile`:
github "MessageKit/MessageKit"
````
## Getting Started
Please have a look at the [Quick Start guide](https://github.com/MessageKit/MessageKit/blob/master/Documentation/QuickStart.md), the [FAQs](https://github.com/MessageKit/MessageKit/blob/master/Documentation/FAQs.md) and the [MessageInputBar docs](https://github.com/MessageKit/MessageKit/blob/master/Documentation/MessageInputBar.md).
If you have any issues have a look at the [Example](https://github.com/MessageKit/MessageKit/tree/master/Example) project or write a question with the "messagekit" tag on [Stack Overflow](https://stackoverflow.com/questions/tagged/messagekit).
## Requirements
- **iOS9** or later
@@ -55,6 +55,11 @@ open class MediaMessageCell: MessageContentCell {
messageContainerView.addSubview(playButtonView)
setupConstraints()
}
open override func prepareForReuse() {
super.prepareForReuse()
self.imageView.image = nil
}
open override func configure(with message: MessageType, at indexPath: IndexPath, and messagesCollectionView: MessagesCollectionView) {
super.configure(with: message, at: indexPath, and: messagesCollectionView)