Last active
May 10, 2018 07:21
-
-
Save dejanskledar/3680eab76caa34cbd6396dc830532621 to your computer and use it in GitHub Desktop.
This is a sample of a Centered CollectionView Flow Layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { | |
guard let attributes = super.layoutAttributesForElements(in: rect) else { | |
return nil | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment