Skip to content

Instantly share code, notes, and snippets.

@KrauserHuang
Created April 1, 2022 09:20
Show Gist options
  • Save KrauserHuang/a9780e68afcd0e235a483d235e1756f3 to your computer and use it in GitHub Desktop.
Save KrauserHuang/a9780e68afcd0e235a483d235e1756f3 to your computer and use it in GitHub Desktop.
let nestedGroup = NSCollectionLayoutGroup.vertical(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
heightDimension: .fractionalWidth(16/9)),
subitems: [fullPhotoItem, mainWithPairGroup, tripletGroup, mainWithPairReversedGroup]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment