diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cf36809..30eecdb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ### Fixed +- Fixed `MessageContentCell`'s subviews `frame` when size equal to `.zero`. +[#716](https://github.com/MessageKit/MessageKit/pull/716) by [@zhongwuzw](https://github.com/zhongwuzw). + - Fixed `MessagesCollectionView`'s bottom inset when hardware keyboard is connected. Do not adjust `MessagesCollection`'s inset when being popped. [#707](https://github.com/MessageKit/MessageKit/pull/707) by [@zhongwuzw](https://github.com/zhongwuzw). diff --git a/Tests/ViewsTests/MessageCollectionViewCellTests.swift b/Tests/ViewsTests/MessageCollectionViewCellTests.swift index 3707f06a..cbaa1a26 100644 --- a/Tests/ViewsTests/MessageCollectionViewCellTests.swift +++ b/Tests/ViewsTests/MessageCollectionViewCellTests.swift @@ -64,7 +64,7 @@ final class MessageContentCellTests: XCTestCase { func testApplyLayoutAttributes() { let layoutAttributes = MessagesCollectionViewLayoutAttributes() - layoutAttributes.avatarPosition.horizontal = .cellLeading + layoutAttributes.avatarPosition = AvatarPosition(horizontal: .cellLeading, vertical: .cellBottom) cell.apply(layoutAttributes) XCTAssertEqual(cell.avatarView.frame, layoutAttributes.frame)