IQKeyboardManager icon indicating copy to clipboard operation
IQKeyboardManager copied to clipboard

Cells disappears when using UICollectionViewCompositionalLayout and TextView inside cell

Open tvrrp opened this issue 2 years ago • 0 comments

Describe the bug I use a UITextField inside a cell. When the cell is at the bottom of the screen, the UICollectionView automatically scrolls to the desired cell when I open the keyboard, but several cells disappear from the screen during the animation.

To Reproduce Steps to reproduce the behavior:

  1. Create CollectionView using UICollectionViewCompositionalLayout.
  2. Create several custom UICollectionViewCells with UITextFields or UITextView.
  3. Choose UITextField near the bottom of the screen.

Expected behavior Cells must not disappear when keyboard is presenting

Screenshots Screenshot 2022-08-05 at 17 44 45 Screenshot 2022-08-05 at 17 44 40

video – https://drive.google.com/file/d/1xoq4YvpnvTVDC4bLu98EzT7OUDnBmEJw/view?usp=sharing

Demo Project If applicable, add demo project.

Versions

Xcode: 13.4.1 Mac OS: 12.5 Simulator/Device: 15.5 Simulator/Device Name: iPhone 8 Library Version: 6.5.10

Additional context The problem is also present if we have a sticky header using header.pinToVisibleBounds = true Video - https://drive.google.com/file/d/11snv48xZN1Jjn01snHmHu_KasGWgMbtR/view?usp=sharing

tvrrp avatar Aug 05 '22 14:08 tvrrp