У меня возникает эта проблема, когда я создал слишком много папок в своем приложении.
Папки перекрывают другие элементы пользовательского интерфейса

Если вместо этого я прокручиваю то, что произошло

Мне нужно остановить прокрутку и не перекрывать другие элементы
Это мой код
func collectionView(_: UICollectionView, layout _: UICollectionViewLayout, insetForSectionAt _: Int) -> UIEdgeInsets {
return UIEdgeInsets(top: 0.0, left: 10.0, bottom: 0.0, right: 10.0)
}
func collectionView(_: UICollectionView, layout _: UICollectionViewLayout, minimumLineSpacingForSectionAt _: Int) -> CGFloat {
return 10.0
}
func collectionView(_: UICollectionView, layout _: UICollectionViewLayout, sizeForItemAt _: IndexPath) -> CGSize {
return CGSize(width: UIScreen.main.bounds.size.width, height: 70)
}
func collectionView(_: UICollectionView, numberOfItemsInSection _: Int) -> Int {
return arrItems.count
}
Ограничения
Вы можете видеть мои ограничения слева
Спасибо за аванс