diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ead7435..287b5a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,18 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ### Changed +- **Breaking Change** Removed the generic constraint `` from `MessageCollectionViewCell`. +[#391](https://github.com/MessageKit/MessageKit/pull/391) by [@SD10](https://github.com/sd10). + +- **Breaking Change** The `configure(message:indexPath:messagesCollectionView)` method of `LocationMessageCell`, +`MediaMessageCell`, `TextMessageCell`, and `MessageCollectionViewCell` has been replaced by methods that take the +delegate return values as arguments. +[#391](https://github.com/MessageKit/MessageKit/pull/391) by [@SD10](https://github.com/sd10). + +- **Breaking Change** The `contentView` property has been renamed to `imageView` for `LocationMessageCell` and `MediaMessageCell` +and `messageLabel` for `TextMessageCell`. +[#391](https://github.com/MessageKit/MessageKit/pull/391) by [@SD10](https://github.com/sd10). + - **Breaking Change** Changed the name of `MessageInputBar`'s property `maxHeight` to `maxTextViewHeight` as the property is the max height the `InputTextView` can have, not the `MessageInputBar` itself. [#380](https://github.com/MessageKit/MessageKit/pull/380) by [@nathantannar4](https://github.com/nathantannar4). diff --git a/Sources/Views/Cells/LocationMessageCell.swift b/Sources/Views/Cells/LocationMessageCell.swift index 95a53cba..d6ff3712 100644 --- a/Sources/Views/Cells/LocationMessageCell.swift +++ b/Sources/Views/Cells/LocationMessageCell.swift @@ -26,6 +26,7 @@ import UIKit import MapKit open class LocationMessageCell: MessageCollectionViewCell { + open override class func reuseIdentifier() -> String { return "messagekit.cell.location" } // MARK: - Properties diff --git a/Sources/Views/Cells/MediaMessageCell.swift b/Sources/Views/Cells/MediaMessageCell.swift index 2b46e5be..d84761ba 100644 --- a/Sources/Views/Cells/MediaMessageCell.swift +++ b/Sources/Views/Cells/MediaMessageCell.swift @@ -25,6 +25,7 @@ import UIKit open class MediaMessageCell: MessageCollectionViewCell { + open override class func reuseIdentifier() -> String { return "messagekit.cell.mediamessage" } // MARK: - Properties