Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Update chat bottom inset after input bar size change
  • Loading branch information
martinpucik committed Jul 19, 2022
commit 0b9193f2d3c8dc4fd55b5713abc089775eec5d53
7 changes: 7 additions & 0 deletions Sources/Controllers/MessagesViewController+Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ internal extension MessagesViewController {
self?.updateMessageCollectionViewBottomInset()
})
.store(in: &disposeBag)

/// Observe frame change of the input bar container to not cover collectioView with inputBar
inputContainerView.publisher(for: \.center)
.sink(receiveValue: { [weak self] _ in
self?.updateMessageCollectionViewBottomInset()
})
.store(in: &disposeBag)
}

// MARK: - Updating insets
Expand Down