Skip to content

Instantly share code, notes, and snippets.

@MaherKSantina
Created July 24, 2018 08:22
Show Gist options
  • Save MaherKSantina/b50165654132927cf97aca4184038b74 to your computer and use it in GitHub Desktop.
Save MaherKSantina/b50165654132927cf97aca4184038b74 to your computer and use it in GitHub Desktop.
MSPCVDI Snippet 1
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
let leftAndRightInsets = cellSpacing + cellPeekWidth
return UIEdgeInsets(top: 0, left: leftAndRightInsets, bottom: 0, right: leftAndRightInsets)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment