From f3769005b99a5de2894a5981638d933648165ad5 Mon Sep 17 00:00:00 2001 From: Kino Date: Mon, 10 Aug 2020 21:31:47 -0700 Subject: [PATCH 1/2] Fixes incorrect animation of cells during keyboard drag-dismiss --- Sources/Controllers/MessagesViewController+Keyboard.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/Controllers/MessagesViewController+Keyboard.swift b/Sources/Controllers/MessagesViewController+Keyboard.swift index 191fb1bc..4196e8d8 100644 --- a/Sources/Controllers/MessagesViewController+Keyboard.swift +++ b/Sources/Controllers/MessagesViewController+Keyboard.swift @@ -100,7 +100,9 @@ internal extension MessagesViewController { messagesCollectionView.setContentOffset(contentOffset, animated: false) } - messageCollectionViewBottomInset = newBottomInset + UIView.performWithoutAnimation { + messageCollectionViewBottomInset = newBottomInset + } } // MARK: - Inset Computation From 92a670345921af0ed456fb8187b8433709c26e47 Mon Sep 17 00:00:00 2001 From: Kino Date: Tue, 11 Aug 2020 11:17:40 -0700 Subject: [PATCH 2/2] Add CHANGELOG entry --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fee10557..8b8a9fb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,13 @@ The changelog for `MessageKit`. Also see the [releases](https://github.com/Messa ### Fixed +- Fixes an incorrect animation of message cells while dragging to dismiss the keyboard by [@lhr000lhrmega](https://github.com/lhr000lhrmega) + ### Added - Added option to use Photo messages with remote image URL in Example project [#1294](https://github.com/MessageKit/MessageKit/pull/1294) by [@martinpucik](https://github.com/martinpucik) - **Breaking Change** Added new `linkPreview` message type, which display a subclass of `TextMessageCell` with support to present title, teaser and a thumbnail image for a link [#1310](https://github.com/MessageKit/MessageKit/pull/1310) by [@bguidolim](https://github.com/bguidolim) + ### Changed - **Breaking Change** Dropped support for iOS 9 and iOS 10 [#1261](https://github.com/MessageKit/MessageKit/pull/1261) by [@kaspik](https://github.com/kaspik)