Skip to content

Instantly share code, notes, and snippets.

@Oni-zerone
Created November 26, 2018 12:20
Show Gist options
  • Select an option

  • Save Oni-zerone/a4e380bf6b6725648023c17d968675af to your computer and use it in GitHub Desktop.

Select an option

Save Oni-zerone/a4e380bf6b6725648023c17d968675af to your computer and use it in GitHub Desktop.

Revisions

  1. Oni-zerone created this gist Nov 26, 2018.
    9 changes: 9 additions & 0 deletions ColorCollectionViewCell.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    class ColorCollectionViewCell: UICollectionViewCell {

    struct Descriptor: ItemViewDescriptor, GridDescriptor {

    let reuseIdentifier: String = String(describing: ColorCollectionViewCell.self)

    let ratio: ViewRatio = ViewRatio(multiplier: 1.6, constant: 0.0)
    }
    }