Skip to content

Instantly share code, notes, and snippets.

@IsaAliev
Last active April 10, 2021 13:20
Show Gist options
  • Save IsaAliev/d6ec7469885127e4d439386130bc6c56 to your computer and use it in GitHub Desktop.
Save IsaAliev/d6ec7469885127e4d439386130bc6c56 to your computer and use it in GitHub Desktop.
override func preferredLayoutAttributesFitting(_ layoutAttributes: UICollectionViewLayoutAttributes) -> UICollectionViewLayoutAttributes {
let attributes = super.preferredLayoutAttributesFitting(layoutAttributes)
attributes.size = .init(width: 250, height: 100)
return attributes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment