Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

scrollToLastItem(at:animated:) is not scrolling to bottom properly.

オープン
#1,830 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift
領域
mobile

調査の方向性

まず Example app の Basic Example screen で問題を再現し、次に scrollToLastItem(at:animated:) のエントリポイントと、collection view の下部 inset の処理を追跡します。プログラムによるスクロールと手動スクロールを比較します。自動スクロール後も最後のメッセージセルと inputBarAccessoryView の間の隙間が残れば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug?

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
Simulator Screen Recording - iPhone 15 Pro Max - 2024-02-14 at 04 16 50

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MessageKit/MessageKit のほかの issue

MessageKit/MessageKit の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。