Skip to content

Instantly share code, notes, and snippets.

@Oni-zerone
Created November 26, 2018 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oni-zerone/a4e380bf6b6725648023c17d968675af to your computer and use it in GitHub Desktop.
Save Oni-zerone/a4e380bf6b6725648023c17d968675af to your computer and use it in GitHub Desktop.
An example UICollectionViewCell ready to be used in PowerTools Framework
class ColorCollectionViewCell: UICollectionViewCell {
struct Descriptor: ItemViewDescriptor, GridDescriptor {
let reuseIdentifier: String = String(describing: ColorCollectionViewCell.self)
let ratio: ViewRatio = ViewRatio(multiplier: 1.6, constant: 0.0)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment