Skip to content

Commit

Permalink
Update inset on safe area change
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantannar4 committed Feb 22, 2019
1 parent 00f9f6e commit f95d5e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/Controllers/MessagesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ UICollectionViewDelegateFlowLayout, UICollectionViewDataSource {
adjustScrollViewTopInset()
}

open override func viewSafeAreaInsetsDidChange() {
if #available(iOS 11.0, *) {
super.viewSafeAreaInsetsDidChange()
}
messageCollectionViewBottomInset = requiredInitialScrollViewBottomInset()
}

// MARK: - Initializers

deinit {
Expand Down

0 comments on commit f95d5e1

Please sign in to comment.