Merge pull request #1433 from MessageKit/fix-keyboard-animation

Fix: unexpected animation when keyboard dismissing
This commit is contained in:
Jakub Kašpar
2020-08-13 09:09:44 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+3
View File
@@ -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)
@@ -100,7 +100,9 @@ internal extension MessagesViewController {
messagesCollectionView.setContentOffset(contentOffset, animated: false)
}
messageCollectionViewBottomInset = newBottomInset
UIView.performWithoutAnimation {
messageCollectionViewBottomInset = newBottomInset
}
}
// MARK: - Inset Computation