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
// | |
// FeaturedCollectionViewCell.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
import UIKit |
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
// | |
// FeaturedView.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
import UIKit |
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
// | |
// FeaturedViewPresenter.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
protocol FeaturedPresenting: class { | |
func scroll() |
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
// | |
// TopMostCollectionViewCellPresenter.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
class TopMostCollectionViewCellPresenter { |
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 |
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
// | |
// TopMostViewController.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
import UIKit |
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
// | |
// TopMostPresenter.swift | |
// iTunesFeatureBanner | |
// | |
// Created by Eric Dockery on 7/7/18. | |
// Copyright © 2018 Eric Dockery. All rights reserved. | |
// | |
class TopMostPresenter { |
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
class ViewController: UIViewController { | |
} | |
extension ViewController: UICollectionViewDelegate { | |
} | |
extension ViewController: UICollectionViewDataSource { | |
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { |
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
class ImageCollectionViewCell: UICollectionViewCell { | |
@IBOutlet weak var gradientView: GradientView! | |
@IBOutlet weak var imageView: UIImageView! | |
} |
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
class GradientView: UIView { | |
override func awakeFromNib() { | |
super.awakeFromNib() | |
let gradientLayer = CAGradientLayer() | |
gradientLayer.frame = CGRect(x: 0, y: 0, width: frame.width, height: frame.height) | |
gradientLayer.colors = [UIColor.white.cgColor,UIColor.red.withAlphaComponent(0.5).cgColor] | |
gradientLayer.startPoint = CGPoint(x: 0.0, y: 1.0) | |
gradientLayer.endPoint = CGPoint(x: 1.0, y: 1.0) |
NewerOlder