Skip to content

Instantly share code, notes, and snippets.

@EricADockery
Created July 7, 2018 21:41
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 EricADockery/21ab50ea874b7ebc9cf7f3efc6c3c0c5 to your computer and use it in GitHub Desktop.
Save EricADockery/21ab50ea874b7ebc9cf7f3efc6c3c0c5 to your computer and use it in GitHub Desktop.
//
// TopMostCollectionViewCell.swift
// iTunesFeatureBanner
//
// Created by Eric Dockery on 7/7/18.
// Copyright © 2018 Eric Dockery. All rights reserved.
//
import UIKit
struct FighterData {
let name: String
let age: Int
let powerLevel: Int
let imageName: String
}
class TopMostCollectionViewCell: UICollectionViewCell {
let presenter = TopMostCollectionViewCellPresenter()
@IBOutlet private weak var featuredView: FeaturedView!
func build(fighters: [FighterData]) {
presenter.build(with: fighters)
featuredView.presenter = presenter.presenter
featuredView.scroll()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment