Closed Oni-zerone closed 3 years ago
BoundingBox calculation in UICollectionView+Sizing.swift is broken:
UICollectionView+Sizing.swift
func boundingBox(for collectionView: UICollectionView) -> CGSize { let width = collectionView.bounds.width - collectionView.contentInset.left - collectionView.contentInset.right let height = collectionView.bounds.height - collectionView.contentInset.top - collectionView.contentInset.top return CGSize(width: width, height: height) }
contentInset.top is considered two times, also I had to change contentInset with adjustedContentInset to make it work
contentInset.top
adjustedContentInset
BoundingBox calculation in
UICollectionView+Sizing.swift
is broken:contentInset.top
is considered two times, also I had to change contentInset withadjustedContentInset
to make it work