We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d09874d commit 04ede57Copy full SHA for 04ede57
apple/InlineIOS/Chat/MessagesCollectionView.swift
@@ -31,7 +31,7 @@ class MessagesCollectionView: UICollectionView {
31
backgroundColor = .clear
32
delegate = coordinator
33
autoresizingMask = [.flexibleHeight]
34
-
+ alwaysBounceVertical = true
35
register(
36
MessageCollectionViewCell.self,
37
forCellWithReuseIdentifier: MessageCollectionViewCell.reuseIdentifier
@@ -505,7 +505,7 @@ private extension MessagesCollectionView {
505
506
func scrollViewDidScroll(_ scrollView: UIScrollView) {
507
let isAtBottom = scrollView.contentOffset.y > -60
508
- if isAtBottom != wasPreviouslyAtBottom {
+ if isAtBottom != wasPreviouslyAtBottom, messages.count > 12 {
509
NotificationCenter.default.post(
510
name: .scrollToBottomChanged,
511
object: nil,
0 commit comments