Created
May 10, 2018 07:20
-
-
Save dejanskledar/d1ab5e82016fa0840a075188477129d0 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
class CollectionViewRow { | |
var attributes = [UICollectionViewLayoutAttributes]() | |
var spacing: CGFloat = 0 | |
init(spacing: CGFloat) { | |
self.spacing = spacing | |
} | |
func add(attribute: UICollectionViewLayoutAttributes) { | |
attributes.append(attribute) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment