Skip to content

Instantly share code, notes, and snippets.

@KrauserHuang
Created April 1, 2022 09:07
Show Gist options
  • Save KrauserHuang/692126f75ceca35bd1efec69befa72ee to your computer and use it in GitHub Desktop.
Save KrauserHuang/692126f75ceca35bd1efec69befa72ee to your computer and use it in GitHub Desktop.
let mainWithPairReversedGroup = NSCollectionLayoutGroup.horizontal(layoutSize: NSCollectionLayoutSize(widthDimension: .fractionalWidth(1),
heightDimension: .fractionalWidth(4/9)),
subitems: [trailingGroup, mainItem])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment