AlignedCollectionViewFlowLayout
AlignedCollectionViewFlowLayout copied to clipboard
A collection view layout that gives you control over the horizontal and vertical alignment of the cells.
I'm getting a crash force unwrapping a nil value testing on iOS 15 Beta but on iPad only. iPhone seems to work fine. The crash occurs here ``` // It's...
Are there any plans to support SwiftPM?
Hi! Do you have supported UICollectionViewScrollDirectionHorizontal?
``` fileprivate func layoutAttributes(forItemsInLineWith layoutAttributes: UICollectionViewLayoutAttributes) -> [UICollectionViewLayoutAttributes] { guard let lineWidth = contentWidth else { return [layoutAttributes] } var lineFrame = layoutAttributes.frame lineFrame.origin.x = sectionInset.left lineFrame.size.width = lineWidth //...
I have implemnted AlignedCollectionViewFlowLayout on my app. ``` let leftAlignLayout = AlignedCollectionViewFlowLayout(horizontalAlignment: .left, verticalAlignment: .top) leftAlignLayout.estimatedItemSize = CGSize(width: 1, height: 1) // Margin leftAlignLayout.minimumInteritemSpacing = 6 leftAlignLayout.minimumLineSpacing = 6 leftAlignLayout.sectionInset...
Hi, I have a collectionView with vertical flow layout that contains the header and shows two cells in a row, the following code will return incorrect y pos in one...
This is a comprehensive and most useful framework. Many thanks! It would be handy to also include a horizontal alignment of `centre` ala [https://github.com/Coeur/CollectionViewCenteredFlowLayout]
When I try to add `AlignedCollectionViewFlowLayout` via Swift Package Manager in Xcode. It shows me this error: > https://github.com/mischa-hildebrand/AlignedCollectionViewFlowLayout.git has no Package.swift manifest for version 1.1.2 ![Screen Shot 2020-06-17 at...
I'm using `alignedFlowLayout` this way: ``` alignedFlowLayout.horizontalAlignment = .left alignedFlowLayout.verticalAlignment = .top ``` After **XCode** updates to **10.0** (but still using **Swift 4.0**) flow layout requires to update manually after...