Skip to content

Instantly share code, notes, and snippets.

@thiagolioy
Created November 21, 2016 15:36
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 thiagolioy/8ce9f39806cc776c5eab5e6a396e3405 to your computer and use it in GitHub Desktop.
Save thiagolioy/8ce9f39806cc776c5eab5e6a396e3405 to your computer and use it in GitHub Desktop.
final class CharacterTableCell: UITableViewCell, NibReusable {
@IBOutlet weak var name: UILabel!
@IBOutlet weak var thumb: UIImageView!
static func height() -> CGFloat {
return 80
}
func setup(item: Character) {
name.text = item.name
thumb.download(image: item.thumImage?.fullPath() ?? "")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment