IQKeyboardManager
IQKeyboardManager copied to clipboard
Cells disappears when using UICollectionViewCompositionalLayout and TextView inside cell
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:
- Create CollectionView using UICollectionViewCompositionalLayout.
- Create several custom UICollectionViewCells with UITextFields or UITextView.
- Choose UITextField near the bottom of the screen.
Expected behavior Cells must not disappear when keyboard is presenting
Screenshots
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