ekazaev / ChatLayout

ChatLayout is an alternative solution to MessageKit. It uses custom UICollectionViewLayout to provide you full control over the presentation as well as all the tools available in UICollectionView. It supports dynamic cells and supplementary view sizes.
MIT License
898 stars 67 forks source link

Chat doesn't correctly scroll to bottom after receiving a new message on iOS 16 #33

Closed IAmConorNolan closed 2 years ago

IAmConorNolan commented 2 years ago

On iOS 16, the collection view doesn't correctly scroll to the bottom after receiving a new message.

Affected: All beta versions of iOS 16.

Expected Behavior

If the user is scrolled to the bottom of the collection view. When they receive a new message They collection view should scroll down to show the new message

Current Behavior

If the user is scrolled to the bottom of the collection view. When they receive a new message The collection view doesn't scroll

https://user-images.githubusercontent.com/52077255/185611149-350893be-9542-41d7-871c-f7d9892f058f.mov

Possible Solution

Investigating, but no suggested fixes as of yet.

Steps to Reproduce

  1. Open the ChatLayout example on an iOS 16 simulator.
  2. Scroll to the bottom.
  3. Wait for new messages to arrive.
  4. Observe that they do not scroll to the correct item.

Context (Environment)

This leads to a broken experience on iOS 16.

ekazaev commented 2 years ago

@IAmConorNolan Hi, Thank you for the issue.

Yep, I also noticed it in the latest IOS 16 beta. I remember testing the layout in one of the first betas and it was allright. Can you please test latest version 1.2.4 and confirm that the bug is gone. ios-16-fix

Regards, Eugene

ekazaev commented 2 years ago

@IAmConorNolan I am closing the issue due to inactivity. If the new version did not solve your issue - feel free to reopen it

IAmConorNolan commented 2 years ago

@ekazaev I can confirm this version resolved the issue. Thank you!