Created
April 14, 2019 07:11
-
-
Save ShoMasegi/1a90ccfb379ddb88c007814cb2147bf1 to your computer and use it in GitHub Desktop.
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
private func layoutItems(...) { | |
.... | |
let layoutAttributes = UICollectionViewLayoutAttributes(forCellWith: indexPath) | |
layoutAttributes.frame = CGRect( | |
x: offsetX, | |
y: offsetY, | |
width: itemWidth, | |
height: itemHeight | |
) | |
allItemAttributes.append(contentsOf: itemsLayoutAttributes) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment