Created
January 21, 2016 19:55
-
-
Save wess/7d2fef8e6f1622036323 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { | |
guard let charge = charges[indexPath.item] as Charge else { fatalError("Invalid index") } | |
guard let cell = collectionView.dequeueReusableCellWithReuseIdentifier(CellIdentifier, forIndexPath: indexPath) as? ChargeKeypadCell else { fatalError("Invalid Cell for charge view") } | |
cell.charge = charge | |
return cell | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment