Created
July 7, 2018 21:41
-
-
Save EricADockery/21ab50ea874b7ebc9cf7f3efc6c3c0c5 to your computer and use it in GitHub Desktop.
This file contains 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
// | |
// 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