scrollToLastItem(at:animated:) is not scrolling to bottom properly.
まだ誰も着手していません。
評価
調査の方向性
まず Example app の Basic Example screen で問題を再現し、次に scrollToLastItem(at:animated:) のエントリポイントと、collection view の下部 inset の処理を追跡します。プログラムによるスクロールと手動スクロールを比較します。自動スクロール後も最後のメッセージセルと inputBarAccessoryView の間の隙間が残れば完了です。
索引モデルが issue の本文から書いたものです。
説明
The Bug
The scrollToLastItem(at:animated:) method is not scrolling to the bottom properly. It eliminates the gap between last cell and inputBarAccessoryView. This issue is visible in the video I recorded from the Example app of MessageKit. It seems the method only makes the last item completely visible without considering the bottom inset and eliminates the space between the inputBarAccessoryView and the message cell.
To Reproduce
Open Example MessageKit app, open Basic Example screen, wait for bots to send message, or you can send yourself, messagesCollectionView will scroll to bottom automatically. Then try to scroll manually, it will scroll a little bit more, which is expected when programatically scrolled.
Expected behavior
The gap between inputBarAccessoryView messagesCollectionView should be kept when programatically scrolled.
Screenshots
Environment
-
What version of MessageKit are you using?
4.2.0 (commit c7f278c) -
What version of iOS are you running on?
IOS 17.0.1 on Simulator iPhone 15 Pro Max
IOS 17.2.1 on Physical Device iPhone 13 -
What version of Swift are you running on?
Swift 5.9 -
What device(s) are you testing on? Are these simulators?
IOS 17.0.1 on Simulator iPhone 15 Pro Max
IOS 17.2.1 on Physical Device iPhone 13 -
Is the issue you're experiencing reproducible in the example app?
Yes.
(I don't know why but GIF is not repeating, you can see it after refresh)
- 主要言語
- Swift
- スター
- 6.3k
- フォーク
- 1.2k
- 平均マージ
- 12時間 4分
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MessageKit/MessageKit のほかの issue
-
Keyboard bug オープンbug?
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
MessageKit/MessageKit#1901 ·
-
question
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MessageKit/MessageKit#1888 · コメント 2 件 ·
-
Transparent navigation bar in messageInputBar but messagesCollectionView is not shown in these areas オープンfeature request
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
MessageKit/MessageKit#1884 · コメント 1 件 ·
-
feature request
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
MessageKit/MessageKit#1880 ·
-
bug?
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MessageKit/MessageKit#1878 ·
MessageKit/MessageKit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
area:general bug P1 security
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
uttrflow/uttrflow-swift#1333 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
maxgoedjen/secretive#840 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
manaflow-ai/cmux#13763 ·