diff --git a/Sources/Controllers/MessagesViewController.swift b/Sources/Controllers/MessagesViewController.swift index 847479cb5..3d060b839 100644 --- a/Sources/Controllers/MessagesViewController.swift +++ b/Sources/Controllers/MessagesViewController.swift @@ -121,6 +121,13 @@ UICollectionViewDelegateFlowLayout, UICollectionViewDataSource { adjustScrollViewTopInset() } + open override func viewSafeAreaInsetsDidChange() { + if #available(iOS 11.0, *) { + super.viewSafeAreaInsetsDidChange() + } + messageCollectionViewBottomInset = requiredInitialScrollViewBottomInset() + } + // MARK: - Initializers deinit {