Skip to content

uruly/SelfSizingCollectionViewDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

SelfSizingCollectionViewDemo

bugfix-self-sizing

What?

UICollectionView contentSize will not work properly!:sob:

self-sizing-collectionView

Occurrence condition

  • Use Self-sizing.
  • Setting minimumLineSpacing and minimumInteritemSpacing to different value.
  • UICollectionView scrollDirection is horizontal.

Environment

  • Xcode 11.3
  • Swift 5.1
  • iOS12.0 ~ iOS13.3

How to bugfix

Setting minimumLineSpacing and minimumInteritemSpacing to equal value.

Blog

ブログを書いたよ。 【Swift】横スクロールの可変UICollectionViewCellを実装するときの注意点【Self-sizing】

About

How to contentSize bugfix of UICollectionView with horizontal scroll and Self-sizing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages